sheraz
Posts: 6
|
Posted: 01/11/2013, 6:50 AM |
|
i have made a site using codecharge. working fine. but after sometime i dont know the time but my site get logout automatically. i dont know why. can anybody had the same issue. kindly help me. or just give me the guideline what can be the issue.
Thanx
_________________
One man army. |
|
|
Gena
Posts: 591
|
Posted: 01/11/2013, 7:23 AM |
|
this is because of your hosting. They have shared session directory and empty expired session time to time, so if you have long (depends from the hoster settings) inactivity period then your session died...
_________________
Gena |
|
|
sheraz
Posts: 6
|
Posted: 01/11/2013, 8:34 AM |
|
Thank you so much for the help.
and tell me what can i do on my side to defend myself.???
_________________
One man army. |
|
|
Gena
Posts: 591
|
Posted: 01/11/2013, 9:00 AM |
|
you can set automatic page refresh (but this is dangerous if you fill the form and page refresh)
you can manually refresh the page so let the server know you are live...
Buy Dedicated server (or even VPS - I have NO problem with timeout on it!)
_________________
Gena |
|
|
sheraz
Posts: 6
|
Posted: 01/11/2013, 9:10 AM |
|
I can't but a server. I am building this site for the company who have their own servers :P
_________________
One man army. |
|
|
sheraz
Posts: 6
|
Posted: 01/11/2013, 9:10 AM |
|
*buy
_________________
One man army. |
|
|
MichaelMcDonald
Posts: 640
|
Posted: 01/13/2013, 3:05 PM |
|
Maybe your session limit time is set to lower than the default 180 min in php.ini
_________________
Central Coast, NSW, Australia.
|
|
|
sheraz
Posts: 6
|
Posted: 01/15/2013, 5:52 AM |
|
@Micheal. Sounds right answer. it was default 24 min. but i've increased to 50 min but not working infact i set it 10 sec. still not working. its like its not even checking the value of session.gc_maxlifetime.
_________________
One man army. |
|
|
MichaelMcDonald
Posts: 640
|
Posted: 01/15/2013, 6:52 AM |
|
Is there another php.ini somewhere, maybe further up the folder hierarchy?
_________________
Central Coast, NSW, Australia.
|
|
|