UK WEB HOSTING FORUM FOR DISCUSSION ON WEB HOSTING SERVICE AND SUPPORT
LINUX HOSTING WINDOWS HOSTING PACKAGES SHOPPING CART OSCOMMERCE ZEN CART AGORA
ECOMMERCE HOSTING ASP MSSQL FRONTPAGE HOSTING PHP MYSQL HOSTING DISCUSSION FORUM
CPANEL RESELLER HOSTING DEDICATED SERVER VPS HOSTING PLESK VIRTUOZZO
Quick Search
Your forum announcement here!

  UK Web Hosting | Dedicated Server Windows and Linux VPS Forum > Services > Web Designing and Development

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 23-01-2008, 17:17
new member
 
Join Date: Sep 2007
Posts: 7
Default asp.net authenication timeout

I have an on going problem with the users of my asp.net website hosting being logged off all the time. They can be logged off after just a few minutes.

My web site hosting uses the asp login control and forms authentication for users to login and that works fine.

I have the following in my web.config :
HTML Code:
<authentication mode="Forms">
  <forms name=".ASPXAUTH" loginUrl="Default.aspx" timeout="525600" slidingExpiration="true" defaultUrl="Default.aspx"/>
</authentication>

The timeout property is set, in minutes, to 1 year however they are logged off after a few minutes of inactivity. My web site hosting is hosted on eurofighter.

Any ideas?

Last edited by westy; 23-01-2008 at 17:22.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 23-01-2008, 17:26
eUK-Martin's Avatar
Windows System Administrator
 
Join Date: Nov 2005
Location: Earth
Posts: 462
Default

The default setting for an Application Pool to get recycled is "5 mins idle time". If a user or a session is idle for 5 mins the application Pool will get recycled clearing the idle session.

One can edit these settings if they have a dedicated application pool for their web site hosting however there is not settings in Plesk to do so. You will need to ask us to it for you. It can be via Live chat or support system.
__________________
Martin
Windows System Admin.


Windows VPS Hosting - Windows Dedicated Server - Web Hosting Tutorials

Email :: windows @ eUKhost.com AND support @ eUKhost.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 23-01-2008, 21:02
new member
 
Join Date: Sep 2007
Posts: 7
Default

Thanks for the advice Martin. I will do that.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 24-01-2008, 02:38
System Administrator
 
Join Date: Dec 2006
Location: localhost
Posts: 725
Thumbs up

It's insecure to have authenticated sessions to be kept active for that long duration. I'd advise you limit the timeout value upto 10-15 mins MAX.
One can re-authenticate if that value is reached or crossed...
__________________

Rock _a.k.a._ Jack L.

http://www.eUKhost.com
Windows Hosting || Windows Reseller Hosting
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 28-01-2008, 14:26
new member
 
Join Date: Sep 2007
Posts: 7
Default

OK, i've had this changed to 1 hour. The nature of my website hosting is that people lookup some information on the site, then go away to other website hostings to act on that information, and then return to my website hosting for more information. It was annoying to have to log back in each time but this is now sorted

However i have another related problem. My web site hosting has a 'remember me' option when you login so you do not have to login again after a browser shut down and restart. I previously thought it was just not working but it seems that it is. Now the recycling timeout has been set to 1 hour it does work, provided that it's within 1 hour of closing your browser. Obvously there may be days between visits to the website hosting so this is not ideal.
I have read that if the decryption and validation keys used for encryption are not maintained between App Pool recycling then this results in any encrypted cookies, including the forms auth cookie not being decrypted on any subsequent requests from the browser and they are discarded. A way around this is to edit the machine.config with a static decryption and validation keys.

Heres a website hosting that explains it better then me:
usingtangent.blogspot.com/2006/10/cookie-timeout-problem.html

Can you edit the machine.config with a static decryption and validation key for my website hosting to sort this problem?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 28-01-2008, 15:08
eUK-Martin's Avatar
Windows System Administrator
 
Join Date: Nov 2005
Location: Earth
Posts: 462
Default

Well machine.config is a server end configuration file for ASP .NET and its sessions. Therefore it would be posisble to edit it as we would like to have the default settings for all the other clients on the server. However you can surely have it edited on non-shared plans, like VPS Hosting, semi-dedicated or dedicated.
__________________
Martin
Windows System Admin.


Windows VPS Hosting - Windows Dedicated Server - Web Hosting Tutorials

Email :: windows @ eUKhost.com AND support @ eUKhost.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 28-01-2008, 16:24
new member
 
Join Date: Sep 2007
Posts: 7
Default

Hi Martin

Sorry i'm not quite clear on what your saying. Correct me if i misunderstood but are you saying that for my shared hosting on eurofighter it is NOT possible for you to edit the machine.config on my behalf because it will affect all the other clients on that server but it IS possible on a non-shared plan?

Thanks
westwok
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 28-01-2008, 17:34
eUK-Martin's Avatar
Windows System Administrator
 
Join Date: Nov 2005
Location: Earth
Posts: 462
Default

Quote:
Originally Posted by westy View Post
Hi Martin

Sorry i'm not quite clear on what your saying. Correct me if i misunderstood but are you saying that for my shared hosting on eurofighter it is NOT possible for you to edit the machine.config on my behalf because it will affect all the other clients on that server but it IS possible on a non-shared plan?

Thanks
westwok
Yeah thats correct.. any change to machine.config will effect all the accounts/domains on the server. If you want we can disable Application pool recycling on your domain however then it won't kill any sessions.. whether required or not.
__________________
Martin
Windows System Admin.


Windows VPS Hosting - Windows Dedicated Server - Web Hosting Tutorials

Email :: windows @ eUKhost.com AND support @ eUKhost.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 28-01-2008, 23:11
new member
 
Join Date: Sep 2007
Posts: 7
Default

Rather than turn it off, how about a compromise of setting it to recycle every 43200 minutes (30 days)? This way users who choose the option of 'Remember Me' will only have to log back on once a month but the web site hosting still gets the benefit of being recycled every so often.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 29-01-2008, 13:46
eUK-Martin's Avatar
Windows System Administrator
 
Join Date: Nov 2005
Location: Earth
Posts: 462
Default

This can definitely be achived by mailing us on windows [at] eukhost.com. However I am sure there should be a different solution to over come this problem or rather make it more secure.
__________________
Martin
Windows System Admin.


Windows VPS Hosting - Windows Dedicated Server - Web Hosting Tutorials

Email :: windows @ eUKhost.com AND support @ eUKhost.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 04:52.

 

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by Web Hosting 3.1.0
Copyright © 2001-2008, eUKhost.com. All rights reserved.

 
Site Map

VPS Hosting
VPS Hosting plans

Dedicated Server Hosting
Dedicated Server plans

Business Web Hosting
100% uptime Hosting

Cpanel Hosting
cPanel Shared Hosting

Reseller Hosting
Reseller Web Hosting

Windows Hosting
Windows Shared Hosting

Windows VPS

Windows VPS Hosting

Semi Dedicated Servers
Semi-Dedicated Hosting

Dedicated Server Mirroring
Dedicated Server Mirroring

Webhosting Knowledgebase
Frequently asked Questions

Web Hosting Blog
eUKhost Blog

Web Hosting Support
Support Helpdesk

UK Data Center
eUKhost Datacenter

Web Hosting Forum
eUKhost Forum

Support Tutorials
Online Flash Tutorials

Offsite Back-up Plans
Remote Backup Service

Customer Testimonials
eUK Customer Testimonials


knowledgebase articles

eUKhost.com Services

Pre-Sales Questions
Pre-sales FAQ's

Domain Names
Domain registration FAQ's

cPanel Hosting
cPanel Hosting FAQ's

Windows Web Hosting
Plesk Control Panel

Reseller Hosting
Reseller Hosting FAQ's

VPS Hosting
Virtual Private Server

Semi-Dedicated Servers
Semi-Dedicated FAQ's

Dedicated Servers
Dedicated Server Hosting


popular blog categories


Web Hosting
Website Hosting articles

UK Web Hosting
UK Hosting articles

Dedicated Server Hosting
Dedicated Server guidelines

VPS Hosting
VPS hosting articles

cPanel Hosting
cPanel Hosting articles

Linux Operating System
Linux Operating techniques

Windows Web Hosting
Windows plesk articles

Web Hosting
Web Hosting Service