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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 08-19-2004, 02:04 PM   #1
bawdy
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
bawdy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-19-2004, 02:39 PM   #2
frank7799
Confirmed User
 
frank7799's Avatar
 
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.
frank7799 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-19-2004, 02:44 PM   #3
Varius
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
Varius is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-19-2004, 02:45 PM   #4
koreanbbque
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
koreanbbque is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-19-2004, 02:50 PM   #5
bawdy
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
bawdy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.