Page 1 of 1

session time is out

Posted: Tue Jul 21, 2009 1:50 pm
by joxxxe
Hello, i think there is a bug with the session time in the admin section, because when i want to add a product it takes me usually 15' time to write to write the description and check all options of it... instead
the script will log me out in about 3 min

and when I press the add product button it doesn't works and I'm redirected to login page again,

does somebody know how can I add more session time to the admin ?

about 30' or 1 hour, is fine for me since I open the admin panmel from my personal computer.

many thanks.

Re: session time is out

Posted: Tue Jul 21, 2009 4:11 pm
by itrends
I would check with your host. The default should be around 20 mins.

Re: session time is out

Posted: Tue Jul 21, 2009 7:55 pm
by Daniel
try in your php.ini file.

Re: session time is out

Posted: Wed Aug 26, 2009 4:00 am
by joxxxe
i did try adding

session.gc_maxlifetime = 12000000;

to the php ini file and i dont see any change,

im checking the current timeout and is
with this code
<?php
echo ini_get("session.gc_maxlifetime");
?>

and is
1440


there is some wrong with my php ini code? thanks.

Re: session time is out

Posted: Thu Aug 27, 2009 10:49 pm
by joxxxe
somebody knows how can i add the expire time? thanks.

Re: session time is out

Posted: Sat Sep 12, 2009 4:50 am
by zooto68
I see you got no help with this either.

Re: session time is out

Posted: Tue Sep 22, 2009 9:15 pm
by plastio
Some hosting providers don't allow php.ini changes
but you may include some of them using directive in .htacces

try adding to your local directory .htacces file the following definitions and there you go

php_value session.gc_maxlifetime 72000
php_value session.cookie_lifetime 72000

let me know if it helped

Re: session time is out

Posted: Sat Jan 02, 2010 12:29 am
by christopherdarling
You may find that in some server environments you may need to add the following line to a .htaccess file, I was facing the same problems as described here until I made this fix.

SetEnv PHPRC /home/sites/sitename.co.uk/subfolder/php.ini


I believe you should be able to move the php.ini into the site root, or the parent folder to public_html which should do the same.

Hope this helps!

Re: session time is out

Posted: Sat May 28, 2011 2:29 pm
by takayuki
So do we have a definitive "how not to get logged out in 3 min's" course of action?

Does it matter where I add the following to the htaccess file?

Code: Select all

php_value session.gc_maxlifetime 10800
php_value session.cookie_lifetime 10800
here's my htaccess file:

Code: Select all

php_flag register_globals off
php_value session.gc_maxlifetime 10800
php_value session.cookie_lifetime 10800
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\?*$ index.php?_route_=$1 [L,QSA]
We'll see if this helps...

thanks,

takayuki