![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Feb 2002
Posts: 1,424
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Industry Role:
Join Date: Jul 2003
Location: In the middle of nowhere...
Posts: 1,974
|
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Industry Role:
Join Date: Jun 2004
Location: New York, NY
Posts: 6,890
|
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 ![]() 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.
__________________
Skype variuscr - Email varius AT gmail |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Dec 2003
Location: Riverside and San Diego
Posts: 688
|
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.
__________________
KBBQ 2 3 1 6 1 8 8 1 6 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Feb 2002
Posts: 1,424
|
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
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |