Jump to content

PHP Sessions


ebolotin

Recommended Posts

Hello. I am using sessions as an imperative asset to the functionality of the user system on my website. The current problem is this, step by step:

 

After the user logs in, a session is set with his username as the session value. Following the login, the user is sent to the account page. On the account page a vast form is displayed with many text boxes, all of which pull the concurrent user values from the database and display them in the specific boxes. Now, here is where the problem is. When the user clicks on any other page, and then clicks back on the account page to view his information, all of the text fields are empty and the user is sent to the login page. So in turn, when a user clicks to another page (other than the account page) and tries to return, the session is no longer active.

 

What could be the problem here?

Link to comment
https://forums.phpfreaks.com/topic/40472-php-sessions/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.