session timeout?

  • Thread starter Thread starter Billy Zhang
  • Start date Start date
B

Billy Zhang

I have a asdp.net app which is form auth.
There is a problem,

The user logins and uses the app, sometimes user will be redirect to the
default login page, why?

Is the session timeout(default 20 mins), but the user is using the app?

Why?

-Billy
 
Billy Zhang said:
I have a asdp.net app which is form auth.
There is a problem,

The user logins and uses the app, sometimes user will be redirect to the
default login page, why?

Is the session timeout(default 20 mins), but the user is using the app?

Why?

Check the AppPool recycling settings. This will happen if the pool recycles
whilst in use. Also check the event log for errors or warnings that might
indicate that the pool recycled for unexpected reasons.
 
Have no any error in eventlog.
But I found the web garden was set as 2.
Maybe this is the cuase why i was redirected to the login page.
 
Billy Zhang said:
Have no any error in eventlog.
But I found the web garden was set as 2.
Maybe this is the cuase why i was redirected to the login page.

Yes. Session state such as the login status will be held per process. Yet
web gardens maintain no session affinity so requests from a client that
logins a user via one process may also end up going to the other process
which isn't aware the user is logged on. Unless you have a really good
reason to use a web garden set it to 1.
 
Hi Billy,

I think Anthony's suggestion is reasonable and good. It is likely the
process recycle (or the web-garden based multi-process behavior) cause the
user get unmatched forms authenticated ticket between multiple requests.
Actually, one of the most important setting for generating the forms
authenticate ticket and also many other ASP.NET random generated identiteis
is the machine key. By default machine key is auto-generated for each
ASP.NET appdomain. You can also customize it:

#How To: Configure MachineKey in ASP.NET 2.0
http://msdn.microsoft.com/en-us/library/ms998288.aspx

#<machineKey> Generator
http://www.aspnetresources.com/tools/keycreator.aspx

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://support.microsoft.com/select/default.aspx?target=assistance&ln=en-us.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.


--------------------
From: =?Utf-8?B?QmlsbHkgWmhhbmc=?= <[email protected]>
References: <[email protected]>
Subject: Re: session timeout?
Date: Fri, 12 Sep 2008 02:41:02 -0700
Have no any error in eventlog.
But I found the web garden was set as 2.
Maybe this is the cuase why i was redirected to the login page.
 
Back
Top