Post by cogent » Sat Aug 29, 2009 2:48 am

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?

Newbie

Posts

Joined
Sat Aug 29, 2009 2:25 am

Post by Qphoria » Sat Aug 29, 2009 3:38 am

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

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by cogent » Sat Aug 29, 2009 4:11 am

unfortunately, this did not work..
thanks for your help though. any other suggestions?

Newbie

Posts

Joined
Sat Aug 29, 2009 2:25 am

Post by zooto68 » Sat Sep 12, 2009 4:50 am

Yup. Another suggestion that doesn't work.

The expiry time is WAY too short by default. Ridiculously so. Please fix this bug.

New member

Posts

Joined
Sun Aug 09, 2009 1:12 am

Post by Qphoria » Sat Sep 12, 2009 5:05 am

Its not affecting most people.. and the help we gave "should" work.
So fix your webhost

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by digbeeorg101 » Fri Sep 25, 2009 9:34 am

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

Newbie

Posts

Joined
Fri Sep 25, 2009 9:23 am

Post by iori57 » Wed Nov 11, 2009 7:31 pm

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!

Newbie

Posts

Joined
Thu Oct 29, 2009 2:37 am

Post by ann0314 » Tue Jun 05, 2012 7:03 pm

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! :)

User avatar
New member

Posts

Joined
Tue Jun 14, 2011 10:31 pm

Post by encikam » Fri Apr 05, 2013 6:54 pm

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.

Newbie

Posts

Joined
Fri Apr 05, 2013 6:51 pm

Post by osicam » Thu Oct 23, 2014 6:10 am

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 ?

Newbie

Posts

Joined
Thu Oct 23, 2014 6:06 am
Who is online

Users browsing this forum: No registered users and 109 guests