473,387 Members | 1,540 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

session timeout?

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
Sep 12 '08 #1
4 1179
"Billy Zhang" <ht****@noemail.noemailwrote in message
news:B8**********************************@microsof t.com...
>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.
--
Anthony Jones - MVP ASP/ASP.NET

Sep 12 '08 #2
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.

"Anthony Jones" wrote:
"Billy Zhang" <ht****@noemail.noemailwrote in message
news:B8**********************************@microsof t.com...
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.
--
Anthony Jones - MVP ASP/ASP.NET

Sep 12 '08 #3
"Billy Zhang" <ht****@noemail.noemailwrote in message
news:1C**********************************@microsof t.com...
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.

--
Anthony Jones - MVP ASP/ASP.NET

Sep 12 '08 #4
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

#<machineKeyGenerator
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:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subs...#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/...tance&ln=en-us.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: =?Utf-8?B?QmlsbHkgWmhhbmc=?= <ht****@noemail.noemail>
References: <B8**********************************@microsoft.co m>
<uX**************@TK2MSFTNGP06.phx.gbl>
>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.

"Anthony Jones" wrote:
>"Billy Zhang" <ht****@noemail.noemailwrote in message
news:B8**********************************@microso ft.com...
>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.
--
Anthony Jones - MVP ASP/ASP.NET

Sep 15 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Geigho | last post by:
Setting session timeout in web.config file does not seem to have any effect. Any explanation or suggestion will be appreciated.
4
by: DavidS | last post by:
First: There are several ways to confuse one regarding session timeout. (1) web.config - <sessionState timeout="20"> (2) IIS Manager | Internet Information Services | ServerNode | Default Web Site...
8
by: Joe Abou Jaoude | last post by:
hi, I have a web app with forms authentication and a timeout session of 20 mins for security reasons. I recently added a feature that allows users (if they want to) to automatically log in...
11
by: Vishal | last post by:
Hello, can anybody tell me how I can extend the session expiry time? Is it done via code or via IIS? Sorry I am new and dont know about this.
5
by: Just D. | last post by:
Do we have any access to the Session object from a different Session? The idea is to save Session of a current user and then if he logs in again then return the Session back. It's not a problem to...
8
by: bdeviled | last post by:
I am deploying to a web environment that uses load balancing and to insure that sessions persist across servers, the environment uses SQL to manage sessions. The machine.config file determines how...
17
by: jensen bredal | last post by:
Hello, i'm struggling with a somehow badly understood session scenario. I provide acces to my pages based on form authentication using Session cookies. Som of my pages are supposed to be...
4
by: UJ | last post by:
I have a page where the user can upload a video file. As you can guess, this may take a while. Is there a way I can change the session timeout for just this one page? I would also want to change...
25
by: =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?= | last post by:
I tried: <sessionState timeout="1"> </sessionState> bounced IIS, and after 1 minute still had a session. ??? -- thanks - dave
6
by: ChrisAtWokingham | last post by:
I have been struggling with unexpected error messages on an ASP.NET system, using SQL and C#. The application draws organisation charts, based on data stored in the SQL database. Some of the chart...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.