close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Issue creating session variable

Thread begun 8/15/2013 9:31 am by hbibizadeh396670 | Last modified 8/15/2013 10:24 am by hbibizadeh396670 | 1837 views | 6 replies |

hbibizadeh396670

Issue creating session variable

I am making a video rentals site, once a user makes a purchase the information is stored in a order details table.

When the user clicks the watch video, I use update server behaviour to add a 1 in the watch count field, this stops them from watching it again.

The script then takes them to a stream page, where I want a session to be filtered to display a video.

However, it is all working but the session.

I used the ecart create session, trigger any form post, and the value from a hidden field set to have the value of the video id from the recordset,

the issue is that the session is not being created when the user clicks the watch button even though it is all seemingly configured correctly.

What is going wrong?

Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

  What is going wrong?  



No way of knowing that without seeing the code.

please send a copy of the pages.

Sign in to reply to this post

hbibizadeh396670

Thanks for the help, I have added a file called moviecentre which is where the user see the videos they bought, and the stream which is where the video is played thanks again

Sign in to reply to this post

Jason ByrnesWebAssist

try adding the following code at line 1 of the stream.php page:

php:
<?php @session_start(); ?>
Sign in to reply to this post

hbibizadeh396670

yep that did it...

thank you so much... best support ever!!!

Sign in to reply to this post

Jason ByrnesWebAssist

php can loose "sight" of the browsing session.

on pages that you reference session variables, you should include the session start function, this forces php to look for the session.

Sign in to reply to this post

hbibizadeh396670

Thank you, I will remember this for the future

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...