Post by joxxxe » Tue Jul 21, 2009 1:50 pm

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.

New member

Posts

Joined
Mon Jul 13, 2009 1:53 pm

Post by itrends » Tue Jul 21, 2009 4:11 pm

I would check with your host. The default should be around 20 mins.

Active Member

Posts

Joined
Tue Jul 14, 2009 7:54 pm

Post by Daniel » Tue Jul 21, 2009 7:55 pm

try in your php.ini file.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by joxxxe » Wed Aug 26, 2009 4:00 am

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.

New member

Posts

Joined
Mon Jul 13, 2009 1:53 pm

Post by joxxxe » Thu Aug 27, 2009 10:49 pm

somebody knows how can i add the expire time? thanks.

New member

Posts

Joined
Mon Jul 13, 2009 1:53 pm

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

I see you got no help with this either.

New member

Posts

Joined
Sun Aug 09, 2009 1:12 am

Post by plastio » Tue Sep 22, 2009 9:15 pm

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

Newbie

Posts

Joined
Fri Jul 24, 2009 11:20 pm

Post by christopherdarling » Sat Jan 02, 2010 12:29 am

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!

Christopher Darling - Web Design Bristol


New member

Posts

Joined
Sat Jan 02, 2010 12:26 am

Post by takayuki » Sat May 28, 2011 2:29 pm

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

New member

Posts

Joined
Thu Aug 13, 2009 10:16 pm
Who is online

Users browsing this forum: No registered users and 16 guests