Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Basic Configuration / Admin Session Time Out In Seconds> Not Working

Admin Session Time Out In Seconds> Not Working

Locked

Started by arrse on 16 Jun 2007, 1:40 PM · Views: 10,157

Results 1 to 17 of 17
This thread is locked. New replies are disabled.
16 Jun 2007, 1:40 PM
#1
arrse avatar

arrse

New Zenner

Join Date:
Nov 2006
Posts:
42
Plugin Contributions:
0

Admin Session Time Out In Seconds> Not Working

Apologies if this has been covered elsewhere but I've had a good look round and can't find anything.

I'm running 1.3.7 with Admin Profiles (nothing on their support thread) and have noticed that the admin session doesn't last long. I've upped the Configuration>My Store>Admin Session Time Out in Seconds to 10800 and it doesn't make any difference.

I've no idea even how to go about finding what is going on here so would be grateful for any suggestions.

16 Jun 2007, 1:56 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Admin Session Time Out In Seconds> Not Working

Are you saying even with this setting you have to login before the 10800 is up?

Look in the Tools ... Server Info ...

Search for:
session.gc_maxlifetime

What is that set to?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

16 Jun 2007, 2:45 PM
#3
arrse avatar

arrse

New Zenner

Join Date:
Nov 2006
Posts:
42
Plugin Contributions:
0

Re: Admin Session Time Out In Seconds> Not Working

Thanks for the response.

Absolutely - there is no way my sessions are lasting 3 hours - more like 10-20 mins.

This is what I have:

session.gc_maxlifetime Local 10800 Master 1440

I'm assuming that 1440 is the 24mins that sessions last on the catalog side?

16 Jun 2007, 2:54 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Admin Session Time Out In Seconds> Not Working

I have also noticed this...
I have (cPanel X):

session.gc_maxlifetime local value 5400 master value 1440

Does the master value when not null override the local value? It would seem so because I can't be away from the session tab a half hour without having to log back in.

16 Jun 2007, 3:29 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Admin Session Time Out In Seconds> Not Working

The local value should be the one in use ...

Do you have any add-ons or anything that might be altering the logic?

Have you asked your host about this?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

16 Jun 2007, 4:44 PM
#6
arrse avatar

arrse

New Zenner

Join Date:
Nov 2006
Posts:
42
Plugin Contributions:
0

Re: Admin Session Time Out In Seconds> Not Working

We run our own server so can change Apache settings, etc as we want - is there anything in particular that may be overriding this?

As for other add-ons, I think Admin profiles is likely to be the only thing that could interfere with the logic. Can you point me at files that I should look at to make sure there is nothing else going on there?

16 Jun 2007, 4:46 PM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Admin Session Time Out In Seconds> Not Working

I am not a server guru and I don't use that Add-on ...

For fun ... if you load to a test directory and test database a clean Zen Cart v1.3.7 and set the time to 10800 for:

Admin Session Time Out in Seconds
Enter the time in seconds. Default=3600
Example: 3600= 1 hour

Note: Too few seconds can result in timeout issues when adding/editing products

Do you still have this issue?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

14 Dec 2007, 1:38 AM
#8
robbyn7 avatar

robbyn7

Zen Follower

Join Date:
Dec 2006
Posts:
187
Plugin Contributions:
0

Re: Admin Session Time Out In Seconds> Not Working

Was this issue ever resolved? If so how?I'm having the same problem after being logged in less than 20 minutes.

Thanks,
The Diva

14 Dec 2007, 2:00 AM
#9
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Admin Session Time Out In Seconds> Not Working

No, I still can't make sessions hold longer than 24 minutes without re-logging in.

If the ZC default is 3600 seconds, it seems like the "master" is overriding even that.

14 Dec 2007, 7:24 PM
#10
robbyn7 avatar

robbyn7

Zen Follower

Join Date:
Dec 2006
Posts:
187
Plugin Contributions:
0

Re: Admin Session Time Out In Seconds> Not Working

Oh well, guess we won't get an answer to this one.

The Diva

24 Jul 2008, 9:51 PM
#11
matt6805 avatar

matt6805

New Zenner

Join Date:
Jan 2006
Posts:
7
Plugin Contributions:
0

Re: Admin Session Time Out In Seconds> Not Working

I'm running into the same issue. See the screenshot below. It shows that I've set the time out value to something like 3 hours, but the master value still shows only 24 minutes of session life. How can I fix this issue? It's driving me nuts!

Here's my server info:
http://img366.imageshack.us/img366/2966/phpinfofr7.png

Regards,
Matt

25 Jul 2008, 7:46 PM
#12
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Admin Session Time Out In Seconds> Not Working

The master value is what was setup by your hosting site for your domain ...

Local Value is what is the reality of my current session ... :smile:

I use this all of the time and are set to 10800 vs 1440 and that keeps me pretty happy ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

25 Jul 2008, 7:54 PM
#13
matt6805 avatar

matt6805

New Zenner

Join Date:
Jan 2006
Posts:
7
Plugin Contributions:
0

Re: Admin Session Time Out In Seconds> Not Working

perhaps i'm not making myself clear, or I'm misunderstanding you, but 10800 seconds should give me 3 hours of admin login time right? I still get 24 minutes because of the master number. Based on the screenshot I posted, I should be getting three hours but I'm not.

So...I don't understand your post? Please advise. Thanks!

Regards,
Matt

25 Jul 2008, 7:58 PM
#14
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Admin Session Time Out In Seconds> Not Working

It is always possible that your hosting site just does not allow you to override these settings ... and perhaps you could ask if they have blocked you from managing your own domain ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

25 Jul 2008, 8:00 PM
#15
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Admin Session Time Out In Seconds> Not Working

Also do you have any add-ons in your admin?

Have you tried for giggles and grins setting up a clean test directory with a clean database with the demo products of v1.3.8 to test if there is anything in your Live Site causing this?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

3 May 2009, 11:03 PM
#16
zean avatar

zean

Zen Follower

Join Date:
May 2009
Posts:
200
Plugin Contributions:
0

Re: Admin Session Time Out In Seconds> Not Working

Ajeh:

It is always possible that your hosting site just does not allow you to override these settings ... and perhaps you could ask if they have blocked you from managing your own domain ...

I have the same problem with admin timeouts as have been discussed by others on this thread. Here is the answer I got from GoDaddy support:

"Thank you for contacting Online Support. Unfortunately the time out on our shared hosting accounts can not be modified. We apologize for any confusion. Please let us know if you have any further questions, comments, or concerns ... ."

Below is a copy of what I sent them and is what GoDaddy support was responding to:

*(1)Using the GoDaddy Hosting Control Center, I get the message: "Your session is about to expire. Click 'ok' to extend your online session." The timeout interval is way too short! How do I change it to a longer interval?

(2)Also, there is a related timeout problem with ZenCart installed using GoDaddy's Quick Install, Zen Cart 1.3.8a. Specifically, GoDaddy is controling the "master value" of "session.gc_maxlifetime" and you have it set to an absurdly short 1440. Checking with the Zen Cart user community, I see that many people have had this problem with GoDaddy. GoDaddy is overriding the "local value" set by the Zen Cart administrative panel (ie, 3600). How do I change the "master value" of "session.gc_maxlifetime" to a longer interval (eg, 3600)?*

Is this a definitive answer to the admin timeout problem with GoDaddy? Frankly, I'm not sure? However, I can tell you this: It is a major nuisance, especially when you have multiple windows open at the same time (eg., using the GoDaddy file manager in one window and editing the Zencart admin console in another) since they will time out at different times thus doubling the frequency of the interruptions to work flow.

4 May 2009, 2:15 PM
#17
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Admin Session Time Out In Seconds> Not Working

That could be the problem ... :unsure:

The code can only control what your hosting provider allows to be altered ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!