2levelsabove Posted March 15, 2008 Share Posted March 15, 2008 Perfectly working application. All of a sudden sessions stop working. If I am on page 1 and make a session like session_start(); $_SESSION['jini']="yes!!!!!"; I can echo the value of session on same page. When i Go to page 2 and type: session_start(); echo $_SESSION['jini']; nothing happens. All of a sudden the sessions are not persisting from one page to the next. any insights ? Quote Link to comment Share on other sites More sharing options...
Psycho Posted March 15, 2008 Share Posted March 15, 2008 Cookies disabled on the client? The client must accept the cookie with the session ID for the session to be rememebred from page to page. Check the cookies folder to see if it is even getting saved. Or, is this problem persistent across many computer and browsers. What have you tried so far? Quote Link to comment Share on other sites More sharing options...
2levelsabove Posted March 15, 2008 Author Share Posted March 15, 2008 It is persistent across many different browsers and computers. It just happened today. All my user authentication and stuff stopped working. To the best of my knowledge no software or patches were installed on server. The folder is created and i see cookies being saved etc including PHPSESSID etc Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted March 15, 2008 Share Posted March 15, 2008 Turn on full php error reporting and check for errors - ini_set ("display_errors", "1"); error_reporting(E_ALL); Quote Link to comment Share on other sites More sharing options...
2levelsabove Posted March 15, 2008 Author Share Posted March 15, 2008 I am going to try that right now! Quote Link to comment Share on other sites More sharing options...
phpSensei Posted March 15, 2008 Share Posted March 15, 2008 Its two simple lines of coding, what can that possible report back other than issues that are occuring with your server. Contact your host provider for any changes made. Quote Link to comment Share on other sites More sharing options...
2levelsabove Posted March 15, 2008 Author Share Posted March 15, 2008 OK so I moved all the files to another server that I own and cookies seem to work fine. I will check with the hosting people tomorrow. Is there a certain setting I should be looking for in php.ini ? Thanks Quote Link to comment Share on other sites More sharing options...
2levelsabove Posted March 15, 2008 Author Share Posted March 15, 2008 Restarted the server and session issue seemed to go away. Aint that odd ? Quote Link to comment Share on other sites More sharing options...
sKunKbad Posted March 15, 2008 Share Posted March 15, 2008 Nothing would surprise me with the hosting issues I've dealt with lately. Quote Link to comment Share on other sites More sharing options...
derrick1123 Posted March 15, 2008 Share Posted March 15, 2008 Did you put session_destroy(); at the bottom by accident? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.