Admin Re-Logging Issue

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
archeie
Ensign (ENS)
Ensign (ENS)
Posts: 11
Joined: Tue May 06, 2008 11:53 pm

Admin Re-Logging Issue

Post by archeie » Wed Feb 04, 2009 12:30 pm

I have to frequently re-login into the admin area. Sometimes i login, and want to view a page and after 5 seconds it asks me again to relogin again.

I have read the advice on viewtopic.php?f=42&t=6192
and increased the timeout sessions in the web.config but i still have to relogin way before that period is support to expire.

I have only one browser window, both IE and firefox act the same way. My site is hosted on discountasp.net

What is causing this timeouts because it is annoying.

The other side issue i have is when i first go the the site, for example index homepage, it takes a while for the site to load. It can take up to 45 seconds for the simple page to load. I know that page is not suppose to take that long to load on a browser. Once the page loads, all the rest of the pages load faster. I am thinking its a session issue. any suggestions?

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Admin Re-Logging Issue

Post by jmestep » Wed Feb 04, 2009 1:09 pm

The page load speed would probably be because there isn't traffic and a .net website "goes to sleep" and it takes a few minutes to wake up.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Admin Re-Logging Issue

Post by mazhar » Wed Feb 04, 2009 1:12 pm

I have to frequently re-login into the admin area. Sometimes i login, and want to view a page and after 5 seconds it asks me again to relogin again.

I have read the advice on viewtopic.php?f=42&t=6192
and increased the timeout sessions in the web.config but i still have to relogin way before that period is support to expire.

I have only one browser window, both IE and firefox act the same way. My site is hosted on discountasp.net

What is causing this timeouts because it is annoying.
It could be some setting imposed by your hosting provider.

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

Re: Admin Re-Logging Issue

Post by AbleMods » Wed Feb 04, 2009 4:42 pm

archeie wrote:What is causing this timeouts because it is annoying.
Wow that would be horribly annoying.

It has to be something with the hosting provider as none of this is the default behavior with AC7.

As far as the delay with the first hit, that's normal for ASP.Net websites that do not receive any traffic. The server is configured to compile and cache the compiled site for a specified period of time. Once this time expires, the next hit to the site will require a full recompile of the site. In the case of DiscountASP.Net, your recompile is fighting for server resources with a bunch of other .Net sites so it's going to take a while. Once you get the site going and it receives regular traffic, this should go away. Or setup a local ping utility to ping your site every 60 seconds and you shouldn't see that initial delay any more.

As for the login timeout, it sounds like DiscountASP.Net has a machine.config file configured that is overriding the web.config within your AC7 application. Post a support ticket to them explaining the problem and see what their response is.

Might also help to use the DiscountASP control to recycle your IIS - maybe their setup doesn't detect web.config changes and instead requires a manual IIS restart.

Whenever you make a web.config file change, the server should recompile the whole site so expect that big delay on the first hit after each web.config 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

kastnerd
Commodore (COMO)
Commodore (COMO)
Posts: 474
Joined: Wed Oct 22, 2008 9:17 am

Re: Admin Re-Logging Issue

Post by kastnerd » Thu Feb 05, 2009 7:07 am

I had to add machine ID to my web.config that fixed it.

fatone
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 38
Joined: Thu Jan 17, 2008 7:35 am

Re: Admin Re-Logging Issue

Post by fatone » Mon Feb 09, 2009 2:32 pm

Could you explain what you mean by Machine ID? I am having the same issue and am also using discountasp.net

Thanks in advance

kastnerd
Commodore (COMO)
Commodore (COMO)
Posts: 474
Joined: Wed Oct 22, 2008 9:17 am

Re: Admin Re-Logging Issue

Post by kastnerd » Tue Feb 10, 2009 10:52 am

I edited the file web.config
add the machineKey (not id sorry)
jmestep wrote:You can create one and put it into your web.config on your shared hoster. If you use an independent key like that, you can move the site from server to server without having a problem with it.

Go to this link: http://aspnetresources.com/tools/keycreator.aspx

Leave the defaults in place, validation key length 64, encryption key length 24, type sha1. Click Generate to create a random machine key for you and copy the result.

Now open the web.config file from your site. Find around line 33 where it shows:

<system.web>

And paste in the <machineKey ... /> on the next line. Save that file.
viewtopic.php?f=42&t=7156&p=40159

Post Reply