Admin Session timeout
- cerami2
- Lieutenant Commander (LCDR)
- Posts: 103
- Joined: Thu Nov 08, 2007 5:29 am
- Location: Plymouth MN
- Contact:
Admin Session timeout
how do i increase this to be longer than that is set to .So i can work for a longer time before loged out
thanks
joe
thanks
joe
Last edited by cerami2 on Sat Jan 05, 2008 4:51 pm, edited 1 time in total.
- compunerdy
- Admiral (ADM)
- Posts: 1283
- Joined: Sun Nov 18, 2007 3:55 pm
Open the web.config file in your store folder and look for the following line:
Change the timeout value (in minutes) as needed.
Then find, a few lines below it, this line:
Again change the timeout to suite your need. Remember this affects your site users as well as you the Admin. It can also impact traffic reports that monitor site authentication as a closed session will still be considered "logged in" until the timeout value is reached.
Code: Select all
<forms timeout="90" slidingExpiration="true"/>
Then find, a few lines below it, this line:
Code: Select all
<sessionState mode="InProc" timeout="90"/>
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
You're welcome. As you can see, I've set mine to 90 minutes because it annoyed me severely.
You'll also want to check the Admin screen Configure/Security/Password Policy. It's set to expire your admin password pretty frequently.
What I'd like is to auto-authenticate if it detects a localhost install. It gets really old doing development testing and having to login and do the CAPTCHA every single time I test a page.
You'll also want to check the Admin screen Configure/Security/Password Policy. It's set to expire your admin password pretty frequently.
What I'd like is to auto-authenticate if it detects a localhost install. It gets really old doing development testing and having to login and do the CAPTCHA every single time I test a page.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
- cerami2
- Lieutenant Commander (LCDR)
- Posts: 103
- Joined: Thu Nov 08, 2007 5:29 am
- Location: Plymouth MN
- Contact:
got a question
How do you do this?
You'll also want to check the Admin screen Configure/Security/Password Policy. It's set to expire your admin password pretty frequently.
I think this is what i need the most I am build the site now and it logs me out to offen
You'll also want to check the Admin screen Configure/Security/Password Policy. It's set to expire your admin password pretty frequently.
I think this is what i need the most I am build the site now and it logs me out to offen
They are two seperate things.
Modifying the web.config file determines the amount of time before your login to the site expires.
Modifying the password policy settings in the Configure/Security menu of the Admin screen determines how often you (and your visitors) password must change.
Modifying the web.config file determines the amount of time before your login to the site expires.
Modifying the password policy settings in the Configure/Security menu of the Admin screen determines how often you (and your visitors) password must change.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
- cerami2
- Lieutenant Commander (LCDR)
- Posts: 103
- Joined: Thu Nov 08, 2007 5:29 am
- Location: Plymouth MN
- Contact:
thanks
thanks for the info
I am new to ablecommerce just moved over from storefront
http://www.insulincase.com
http://66.252.239.209
Thanks again
Joe Cerami
I am new to ablecommerce just moved over from storefront
http://www.insulincase.com
http://66.252.239.209
Thanks again
Joe Cerami
- NC Software
- AbleCommerce Partner
- Posts: 4620
- Joined: Mon Sep 13, 2004 6:06 pm
- Contact:
Out of curiosity, how does this timeout pair with session timeout? You may have a 90 minute timeout for your admin side, but what if your IIS session times out, default of which is 20 minutes?
Logan?
Logan?
Neal Culiner
NC Software, Inc.
NC Software, Inc.
That's what we're describing, the IIS session timeout value.
They can be set server-wide in a global web.config file or on a site-by-site basis using individual site web.config files.
You could specify different timeout values in the root web.config and the ~/Admin/web.config files. You would then have a scenario where pages in one part of the site timeout sooner/later than other parts of the site.
That would be a very non-standard implementation but it is supported so far as I know.
They can be set server-wide in a global web.config file or on a site-by-site basis using individual site web.config files.
You could specify different timeout values in the root web.config and the ~/Admin/web.config files. You would then have a scenario where pages in one part of the site timeout sooner/later than other parts of the site.
That would be a very non-standard implementation but it is supported so far as I know.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
- NC Software
- AbleCommerce Partner
- Posts: 4620
- Joined: Mon Sep 13, 2004 6:06 pm
- Contact:
I wouldn't touch the IIS session timeout. What you should do (Logan/AC) is have an option in the AC7 Admin to enable "keep alive" that will refresh the admin section every 15 minutes or so which prevents the session from expiring. There could be nasty side effects of extending the sessionin IIS such as memory management.
Neal Culiner
NC Software, Inc.
NC Software, Inc.
Re: Admin Session timeout
Has the suggestion of refreshing for admin to prevent timing out been implemented in any form?
Since I am using a hosted solution with Able, I don't want to cause potential memory problems on the server by extending the IIS timeout value.
Thanks,
Bruce.
Since I am using a hosted solution with Able, I don't want to cause potential memory problems on the server by extending the IIS timeout value.
Thanks,
Bruce.
Re: Admin Session timeout
I agree with Neal that a refresh feature should be added, but until then there's only one way I know to do it and that's changing the session timeout value in the site web.config file.
I've been running it that way for months without any issues - I think you'll be fine changing it for your site.
I've been running it that way for months without any issues - I think you'll be fine changing it for your site.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
- Logan Rhodehamel
- Developer
- Posts: 4116
- Joined: Wed Dec 10, 2003 5:26 pm
Re:
Forms authentication is the one that matters for purposes of login/logout. It is based on a cookie, so increasing the value won't have much impact on server resources.NC Software wrote:Out of curiosity, how does this timeout pair with session timeout? You may have a 90 minute timeout for your admin side, but what if your IIS session times out, default of which is 20 minutes?
Session timeout is less critical. We only make use of session in rare occasions, so it is not an issue if the session expires. If the user visits the site again, the server session will be recreated. Generally we avoid the ASPNET session in favor of using our database, since it is simpler for clustering.
Cheers,
Logan
.com
If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.
Logan

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.
- NC Software
- AbleCommerce Partner
- Posts: 4620
- Joined: Mon Sep 13, 2004 6:06 pm
- Contact:
Re: Re:
...since it is simpler for clustering
So THAT'S why I see so much session state work done via specialized code instead of the .Net session functions........I've been wondering that for months
So THAT'S why I see so much session state work done via specialized code instead of the .Net session functions........I've been wondering that for months

Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
- Logan Rhodehamel
- Developer
- Posts: 4116
- Joined: Wed Dec 10, 2003 5:26 pm
Re: Admin Session timeout
By default - this is a standard ASPNET / web.config setting that you can turn on or off.NC Software wrote:Is it a sliding expiration?
Cheers,
Logan
.com
If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.
Logan

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.
- Logan Rhodehamel
- Developer
- Posts: 4116
- Joined: Wed Dec 10, 2003 5:26 pm
Re: Re:
This time around we've made the "session" code more aligned with the .NET framework. Instead of implementing custom sessions, we created an implementation of a .NET Membership Provider. So while our implementation is custom, the standard framework APIs are used.SolunarServices wrote:So THAT'S why I see so much session state work done via specialized code
Cheers,
Logan
.com
If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.
Logan

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.