ebolotin Posted February 28, 2007 Share Posted February 28, 2007 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 More sharing options...
itsmeArry Posted February 28, 2007 Share Posted February 28, 2007 did u use "session_start()" at the top of the page.. this may be the problem. when you are using session in order to retain the session on every page you need to use "session_start()" on every page. Link to comment https://forums.phpfreaks.com/topic/40472-php-sessions/#findComment-195830 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.