Admin Session timeout

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
cerami2
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 103
Joined: Thu Nov 08, 2007 5:29 am
Location: Plymouth MN
Contact:

Admin Session timeout

Post by cerami2 » Sat Jan 05, 2008 3:22 am

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
Last edited by cerami2 on Sat Jan 05, 2008 4:51 pm, edited 1 time in total.

User avatar
compunerdy
Admiral (ADM)
Admiral (ADM)
Posts: 1283
Joined: Sun Nov 18, 2007 3:55 pm

Post by compunerdy » Sat Jan 05, 2008 11:51 am

You should have seen my last store. I sometimes had to relog in 6 times during one session.

I believe that certain rules like visa certification or something requires the security to be set to a certain level. I could be totally wrong though.

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Post by AbleMods » Sun Jan 06, 2008 6:05 am

Open the web.config file in your store folder and look for the following line:

Code: Select all

<forms timeout="90" slidingExpiration="true"/>
Change the timeout value (in minutes) as needed.

Then find, a few lines below it, this line:

Code: Select all

<sessionState mode="InProc" timeout="90"/>
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.
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

User avatar
cerami2
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 103
Joined: Thu Nov 08, 2007 5:29 am
Location: Plymouth MN
Contact:

thanks

Post by cerami2 » Sun Jan 06, 2008 6:12 am

Thank you for your help

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Post by AbleMods » Sun Jan 06, 2008 6:17 am

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.
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

User avatar
cerami2
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 103
Joined: Thu Nov 08, 2007 5:29 am
Location: Plymouth MN
Contact:

got a question

Post by cerami2 » Sun Jan 06, 2008 6:22 am

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

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Post by AbleMods » Sun Jan 06, 2008 6:42 am

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.
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

User avatar
cerami2
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 103
Joined: Thu Nov 08, 2007 5:29 am
Location: Plymouth MN
Contact:

thanks

Post by cerami2 » Sun Jan 06, 2008 7:22 am

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

User avatar
NC Software
AbleCommerce Partner
AbleCommerce Partner
Posts: 4620
Joined: Mon Sep 13, 2004 6:06 pm
Contact:

Post by NC Software » Sun Jan 06, 2008 9:37 am

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?
Neal Culiner
NC Software, Inc.

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Post by AbleMods » Tue Jan 08, 2008 6:09 am

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.
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

User avatar
NC Software
AbleCommerce Partner
AbleCommerce Partner
Posts: 4620
Joined: Mon Sep 13, 2004 6:06 pm
Contact:

Post by NC Software » Tue Jan 08, 2008 6:55 am

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.

User avatar
bha
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 44
Joined: Tue Mar 11, 2008 6:04 pm

Re: Admin Session timeout

Post by bha » Sat Apr 12, 2008 6:29 pm

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.

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Admin Session timeout

Post by AbleMods » Sat Apr 12, 2008 8:32 pm

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.
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

User avatar
Logan Rhodehamel
Developer
Developer
Posts: 4116
Joined: Wed Dec 10, 2003 5:26 pm

Re:

Post by Logan Rhodehamel » Sun Apr 13, 2008 12:11 pm

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?
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.

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
Image.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.

User avatar
NC Software
AbleCommerce Partner
AbleCommerce Partner
Posts: 4620
Joined: Mon Sep 13, 2004 6:06 pm
Contact:

Re: Admin Session timeout

Post by NC Software » Sun Apr 13, 2008 12:24 pm

Logan,

Is it a sliding expiration?
Neal Culiner
NC Software, Inc.

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Re:

Post by AbleMods » Sun Apr 13, 2008 12:25 pm

...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 :)
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

User avatar
Logan Rhodehamel
Developer
Developer
Posts: 4116
Joined: Wed Dec 10, 2003 5:26 pm

Re: Admin Session timeout

Post by Logan Rhodehamel » Sun Apr 13, 2008 5:39 pm

NC Software wrote:Is it a sliding expiration?
By default - this is a standard ASPNET / web.config setting that you can turn on or off.
Cheers,
Logan
Image.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.

User avatar
Logan Rhodehamel
Developer
Developer
Posts: 4116
Joined: Wed Dec 10, 2003 5:26 pm

Re: Re:

Post by Logan Rhodehamel » Sun Apr 13, 2008 5:41 pm

SolunarServices wrote:So THAT'S why I see so much session state work done via specialized code
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.
Cheers,
Logan
Image.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.

Post Reply