close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

User id not set sometimes but fine sometimes too

Thread began 1/22/2010 8:20 am by neil.batchelor254136 | Last modified 3/23/2010 5:37 pm by neil.batchelor254136 | 2411 views | 21 replies


Switching from Session Variable to Server Variable


Thank you for your suggestions and test files.
These test files worked for me.
The session with my normal settings are fine.

However I agree with your comments "it would be best to move away from cookies and keep all of this server side. The best replacement for the cookies is using session variables to hold the details of the user. When the user logs in you should store their userID in a session variable then use this variable wherever you need the id of the user."

I would like to switch to session variables to store the user id where I need to insert it.
However I don't know how to do this.

I thought it would be useful to email you a version of my database, and my files so you can see the existing code (total 3.9mb) and suggest how I might switch to storage of the USER_ID over from session to server variable, to then insert it in various tables as I wish.

I have included a view files so you can get a good idea of the data interaction, between user, main listing and special offers. partial DB attached.

Many thanks,

Attached Files
Special Offer

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





Ease of use


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...