Page 1 of 1
Admin session expires way too fast
Posted: Sat Aug 29, 2009 2:48 am
by cogent
After logging in to the admin, If i'm idle for like a minute, I get logged out. So if I spend a minute entering a description for a product, and then hit save, I'm sent back to the login.
I can't send a client to the admin area to enter their own products if they have to keep saving even if they are not finished entering product details.
How can I make this not expire so fast?
Re: Admin session expires way too fast
Posted: Sat Aug 29, 2009 3:38 am
by Qphoria
I think it just uses normal browser session
try edit system/library/session.php
FIND:
@ini_set('session.use_trans_sid', '0');
AFTER ADD:
@ini_set('session.gc_maxlifetime',1440);
that should last a day.
mroe info here:
http://www.webmasterworld.com/forum88/4186.htm
Re: Admin session expires way too fast
Posted: Sat Aug 29, 2009 4:11 am
by cogent
unfortunately, this did not work..
thanks for your help though. any other suggestions?
Re: Admin session expires way too fast
Posted: Sat Sep 12, 2009 4:50 am
by zooto68
Yup. Another suggestion that doesn't work.
The expiry time is WAY too short by default. Ridiculously so. Please fix this bug.
Re: Admin session expires way too fast
Posted: Sat Sep 12, 2009 5:05 am
by Qphoria
Its not affecting most people.. and the help we gave "should" work.
So fix your webhost
The Problem is Shared hosting and tmp directory
Posted: Fri Sep 25, 2009 9:34 am
by digbeeorg101
The fix is to create your own session directory
open and edit /cart/system/library/session.php
add just before the
session_set_cookie_params(0, '/');
$garbage_timeout = 3600; // 3600 seconds = 60 minutes = 1 hour
ini_set('session.gc_maxlifetime', $garbage_timeout);
ini_set('session.save_path','/path/to/your/cart/create a directory/my_sessions');
also change the new my_sessions directory to 777
Re: The Problem is Shared hosting and tmp directory
Posted: Wed Nov 11, 2009 7:31 pm
by iori57
digbeeorg101 wrote:The fix is to create your own session directory
open and edit /cart/system/library/session.php
add just before the
session_set_cookie_params(0, '/');
$garbage_timeout = 3600; // 3600 seconds = 60 minutes = 1 hour
ini_set('session.gc_maxlifetime', $garbage_timeout);
ini_set('session.save_path','/path/to/your/cart/create a directory/my_sessions');
also change the new my_sessions directory to 777
I also most ended up killing my pc because I typed a long paragraph and when I click 'save' it directs me to the login page without saving... but after following your steps it finally works... THANKS MAN!
Re: The Problem is Shared hosting and tmp directory
Posted: Tue Jun 05, 2012 7:03 pm
by ann0314
iori57 wrote:digbeeorg101 wrote:The fix is to create your own session directory
open and edit /cart/system/library/session.php
add just before the
session_set_cookie_params(0, '/');
$garbage_timeout = 3600; // 3600 seconds = 60 minutes = 1 hour
ini_set('session.gc_maxlifetime', $garbage_timeout);
ini_set('session.save_path','/path/to/your/cart/create a directory/my_sessions');
also change the new my_sessions directory to 777
I also most ended up killing my pc because I typed a long paragraph and when I click 'save' it directs me to the login page without saving... but after following your steps it finally works... THANKS MAN!
Yep worked for me as well and looking over the link Qphoria posted in his post, it mentions doing it this way if you are on a shared server as well in that article...so TY to you both!

Re: Admin session expires way too fast
Posted: Fri Apr 05, 2013 6:54 pm
by encikam
hey, can anyone show this tutorial using image/print-screen?
i confuse on this part:
ini_set('session.save_path','/path/to/your/cart/create a directory/my_sessions');
thanks.
Re: Admin session expires way too fast
Posted: Thu Oct 23, 2014 6:10 am
by osicam
Hello
Can anyone help me I am also confused about the instructions
WHat is the path to cart I havr to enter ?
WHat is the correct syntax ? I can't find the right syntax to write the path
Can anyone help ?