![]() |
need help with php sessions being lost
In an application I am developing the session doesnt seem to get renewed everytime a page is reloaded, so after 20mins or so the session seems to get lost.
anybody know anything about this? I'm thinking of handling the session data myself via a database solution |
If you are using session.gc_maxlifetime the session will be destroyed when the time you entered there is running out. maybe it is this, but I´m not really sure, because your given information is not the most.
|
Are you using cookies, files, database for your sessions?
I'm using the following config for my sessions: ini_set('session.name','z'); ini_set('session.use_cookies',0); ini_set('session.gc_maxlifetime',3600); ini_set('session.gc_probability',100); ini_set('session.use_trans_sid',1); and it's working like a charm :thumbsup I have cookies off, and trans_sid on (so all my url's get the session_id automatically). The only thing to remember is to add a hidden input to your forms so when a form gets submitted, your session isn't lost. Without more details its hard to help you though......but make sure your page is doing session_start at the top atleast. |
It could be also by default the session information is written to disk. Possibly the partition that the information is being stored on is full?
Like previous post said, need more info. It's like going to a mechanic and saying, somethings wrong with my car. |
thanks guys... i will have a look at the suggestions made... its a problem thats been haunting me for a while but one im sure i'll figure out.. just need some directions to search in :)
|
All times are GMT -7. The time now is 04:20 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123