Page 1 of 1
session lifetime only 24 munites?
Posted: Thu Sep 18, 2008 6:39 pm
by bungkusan
Really urgent
I just can't set the session lifetime.
this link doesn't help either
http://www.captain.at/howto-php-sessions.php
somebody help me

Re: session lifetime only 24 munites?
Posted: Thu Sep 18, 2008 7:23 pm
by Stryks
Can I just ask what you need longer sessions for?
From my understanding, that 24 minutes counts down from the last usage of the session. Setting it to longer sounds more like you want to remember logins, which is usually achieved via cookies, not by keeping sessions open.
What are you actually trying to achieve?
Re: session lifetime only 24 munites?
Posted: Thu Sep 18, 2008 7:44 pm
by bungkusan
Stryks wrote:Can I just ask what you need longer sessions for?
From my understanding, that 24 minutes counts down from the last usage of the session. Setting it to longer sounds more like you want to remember logins, which is usually achieved via cookies, not by keeping sessions open.
What are you actually trying to achieve?
I use that for my shopping cart
maybe you can see it here :
http://www.bungkusan.com
wait until 20 munites, and please refresh your page and wait for the next 4 munites, the session will destroy itself, please, help me

Re: session lifetime only 24 munites?
Posted: Thu Sep 18, 2008 10:31 pm
by Stryks
Wow ... I don't know if it's just me, but that seems like really odd behavior.
I'm a database session convert for the most part, so I don't really have these issues. Take a look at the php manual for
session_set_save_handler or have a search around here. You should be able to turn up some gems.
Hopefully if anyone else has any ideas that will work with standard sessions, they'll jump on in with other suggestions.
Cheers
Re: session lifetime only 24 munites?
Posted: Fri Sep 19, 2008 5:32 am
by jayshields
Code: Select all
ini_set('session.gc_maxlifetime', 24 * 60);
?
Re: session lifetime only 24 munites?
Posted: Fri Sep 19, 2008 11:45 am
by Maugrim_The_Reaper
Maybe the application has a preset login expiry for security reasons? Does the application have a support contact or forum?
Re: session lifetime only 24 munites?
Posted: Sun Sep 21, 2008 6:27 pm
by bungkusan
the hosting management suggest me to edit my own php.ini
how to do this stuff?