Setting timeout for admin session

Once you've installed phpList... ask questions here!
Forum rules
Please help the volunteers to help you by supplying the version of phpList you are using, browser & version and if possible, a link to your phpList installation.

Setting timeout for admin session

Postby hktang » 5:20am, Mon 09 Sep, 2013

Hi, I would like to extend the expiry period of an admin session and wonder where I can set this?

I did find an answer about setting the "session lifetime" in the config.ini file, but unfortunately it's for version 2.x.x.

Appreciate if someone could some light on how to set this in 3.x.x.. Many thanks in advance!

hktang
hktang
PL Nut
 
Posts: 15
Joined: 5:14am, Fri 18 Nov, 2011

Re: Setting timeout for admin session

Postby hktang » 8:22am, Fri 13 Sep, 2013

Any one? ...
hktang
PL Nut
 
Posts: 15
Joined: 5:14am, Fri 18 Nov, 2011

Re: Setting timeout for admin session

Postby Sven2157 » 5:07pm, Fri 13 Sep, 2013

I don't follow what it is you want to do here. Do you have a scenario? Session settings are all over the place: php, browser, host, etc, etc.

So ... You do somehting. Now, what is happening, and what do you think should happen? :?

Sven2157
Sven2157
PL Master
 
Posts: 170
Joined: 12:18pm, Fri 07 Jun, 2013

Re: Setting timeout for admin session

Postby hktang » 12:26am, Tue 17 Sep, 2013

Hi Sven2157, thanks for your reply! Basically the problem is:

    What happens:
    I log in as an admin, and I come back (for example) in 2 hours, and realise I have been logged out, and need to sign in again.

    What I expect:
    Is it possible to extend this period to, say, 1 day, so that I don’t need to log in again if I am not active for a few hours?

I hope I explain this scenario clearly..

hktang
hktang
PL Nut
 
Posts: 15
Joined: 5:14am, Fri 18 Nov, 2011

Re: Setting timeout for admin session

Postby PatriciaW43 » 6:22pm, Tue 24 Sep, 2013

I have the same problem but in my case it times out in the middle of a session and after a relatively short period and I have lost changes I was making.
PatriciaW43
phpLister
 
Posts: 10
Joined: 6:14pm, Tue 24 Sep, 2013

Re: Setting timeout for admin session

Postby aptoitos » 5:33pm, Sat 20 Sep, 2014

I have the same issue. My admin session will not stay active for more than a few hours. I don't know exactly how many hours though. I do have this in my config.php:

ini_set('session.gc_maxlifetime',14400);

but does not seem to make a difference.

I am on phplist 3.0.8 by the way.

This is particularly annoying when processing a queue (sending emails) as it stalls the queue and I have to stop it and resume. However, when the admin session has timed out, I have to re-log in.

Can anyone assist?

Thanks
aptoitos
phpList newbie
 
Posts: 1
Joined: 5:18pm, Sat 20 Sep, 2014

Re: Setting timeout for admin session

Postby Aly22 » 12:10am, Tue 02 Dec, 2014

I have this same issue, but it is not hours - it is maybe 15 minutes and sometimes less.
This never happened prior to updating to current version 3.0.10

I have tried adding the "fix" mentioned:
ini_set('session.gc_maxlifetime',14400);

and there is no change.
Have wiped out all session cookies and cleared cache, etc. but still the issue persists and there are no answers to be found other than the "fix" above that doesn't work on version 3 issues.

Has anyone on this thread found a solution that works, please?
THANKS!
Aly22
phpLister
 
Posts: 6
Joined: 8:27pm, Sat 16 May, 2009

Re: Setting timeout for admin session

Postby hashbang » 10:15am, Tue 09 Dec, 2014

I have the exactly same problem with Version 3.0.5. I have only few minutes until the admin user is kicked out of the session. It's extremely annoying when you're writing a letter an lose all information, because the session timed out. :-(

I tried different "solutions" posted on this forum or elsewhere, but nothing helped. This is what I tried so far:

1. Setiting session.gc_maxlifetime to a large value - no effect at all.

2. Storing session files elsewhere:
Code: Select all
session_save_path('/path/to/my/session/directory');
ini_set('session.gc_maxlifetime', 3*60*60); // 3 hours
ini_set('session.gc_probability', 1);
ini_set('session.gc_divisor', 100);
ini_set('session.cookie_secure', FALSE);
ini_set('session.use_only_cookies', TRUE);
session_start();


The session files are really stored on the specified path now (there are lots of them!), but the session still terminates after several minutes.

3. Do not ckech ip:

Code: Select all
define("CHECK_SESSIONIP", 0);


This did not help either.

4. Store admin session info in the database:

Code: Select all
$SessionTableName = "phplistsessions";


The table "phplistsessions" has been created, but it's empty.

So, does anyone know a real solution to this problem?
hashbang
phpList newbie
 
Posts: 1
Joined: 10:02am, Tue 09 Dec, 2014


Return to Questions and Problems after Installing

Who is online

Users browsing this forum: No registered users and 1 guest

cron