close ad
 
Important WebAssist Announcement
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 5:20 am by neil.batchelor254136 | Last modified 3/23/2010 2:37 pm by neil.batchelor254136 | 4070 views | 21 replies

neil.batchelor254136

Switching from Session Variable to Server Variable

Eric,

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,
Neil

Attached Files
Listing Files.zip
Special Offer Files.zip
USERS_LISTINGS_INPUT_DATA_LogIn.php.zip
USERS_LISTINGS_INPUT_DATA_Registration.php.zip
databases.zip

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