473,408 Members | 1,973 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,408 software developers and data experts.

Users are randomly losing session and are forced to relogin

I know this issue has been brought up many times, but I have tried many of
the solutions to no avail. I wanted to give my specific case to see if
someone could be of any help.

We are using the sessionstate inproc mode and users are randomly losing
their session. I do not believe it is happening across all users at one
time. It seems to happen to different users at different times, but I am
only going off heresay. The aspnet worker process is not showing a restart
in the event log, do I need to turn on some setting in order for the restart
to be logged? Our production server is a 4 proc server running win 2003. We
are not running a web farm or garden. We do not have virus scanning turned
on for the asp.net application folders. Our timeout is 240 minutes and it is
set in IIS and in the web.config file. With this high timeout setting, some
users still get timed out after a few minutes.

Session dropping seems to be a popular issue with inproc, but most of the
threads refer to the worker process restarting for some reason. If the
worker process restart is not the cause, is there any other thing we can try
or something we can log to determine why the sessions are dropping.
Nov 18 '05 #1
5 5233
Hi,

Session state is often lost when the application domain unloads. This is
not the same as seeing the process cycle. In order to see if the app
domain has recycled, you will need to monitor the ASP.NET v1.1.4322 object
in Performance Monitor and see if the Application Restarts counter
increments.

You may also want to check your Forms authentication timeout. I don't know
for sure you are using Forms auth, but you did say that people are being
forced to log back in. I've seen plenty of cases where it's not Session
state getting lost, but the FormsAuthenticationTicket expiring.

Jim Cheshire [MSFT]
MCP+I, MCSE, MCSD, MCDBA
ASP.NET Developer Support
ja******@online.microsoft.com

This post is provided "AS-IS" with no warranties and confers no rights.
--------------------
| Thread-Topic: Users are randomly losing session and are forced to relogin
| thread-index: AcTHNLNq4nrPZS/qQKGfZAScPKm6Gw==
| X-WBNR-Posting-Host: 198.179.10.7
| From: =?Utf-8?B?ZmJ3aGl0ZUBvbmxpbmUubm9zcGFt?= <fb*****@online.nospam>
| Subject: Users are randomly losing session and are forced to relogin
| Date: Wed, 10 Nov 2004 06:51:03 -0800
| Lines: 19
| Message-ID: <5A**********************************@microsoft.co m>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGXA0
3.phx.gbl
| Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.framework.aspnet:275008
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| I know this issue has been brought up many times, but I have tried many
of
| the solutions to no avail. I wanted to give my specific case to see if
| someone could be of any help.
|
| We are using the sessionstate inproc mode and users are randomly losing
| their session. I do not believe it is happening across all users at one
| time. It seems to happen to different users at different times, but I am
| only going off heresay. The aspnet worker process is not showing a
restart
| in the event log, do I need to turn on some setting in order for the
restart
| to be logged? Our production server is a 4 proc server running win 2003.
We
| are not running a web farm or garden. We do not have virus scanning
turned
| on for the asp.net application folders. Our timeout is 240 minutes and
it is
| set in IIS and in the web.config file. With this high timeout setting,
some
| users still get timed out after a few minutes.
|
| Session dropping seems to be a popular issue with inproc, but most of the
| threads refer to the worker process restarting for some reason. If the
| worker process restart is not the cause, is there any other thing we can
try
| or something we can log to determine why the sessions are dropping.
|

Nov 18 '05 #2
Hey Jim
I have a Question related to losing session.

When i run my application locally, most of the time my session is lost.
I came to understand that it is because VShield (Virus Scanner) is running
in the background. So, i have to disable everytime i need to run my
application??
And it works fine.

Do you think losing session is also related to Virus Scanner running in the
background???

Thanks
vinay

"Jim Cheshire [MSFT]" wrote:
Hi,

Session state is often lost when the application domain unloads. This is
not the same as seeing the process cycle. In order to see if the app
domain has recycled, you will need to monitor the ASP.NET v1.1.4322 object
in Performance Monitor and see if the Application Restarts counter
increments.

You may also want to check your Forms authentication timeout. I don't know
for sure you are using Forms auth, but you did say that people are being
forced to log back in. I've seen plenty of cases where it's not Session
state getting lost, but the FormsAuthenticationTicket expiring.

Jim Cheshire [MSFT]
MCP+I, MCSE, MCSD, MCDBA
ASP.NET Developer Support
ja******@online.microsoft.com

This post is provided "AS-IS" with no warranties and confers no rights.
--------------------
| Thread-Topic: Users are randomly losing session and are forced to relogin
| thread-index: AcTHNLNq4nrPZS/qQKGfZAScPKm6Gw==
| X-WBNR-Posting-Host: 198.179.10.7
| From: =?Utf-8?B?ZmJ3aGl0ZUBvbmxpbmUubm9zcGFt?= <fb*****@online.nospam>
| Subject: Users are randomly losing session and are forced to relogin
| Date: Wed, 10 Nov 2004 06:51:03 -0800
| Lines: 19
| Message-ID: <5A**********************************@microsoft.co m>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGXA0
3.phx.gbl
| Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.framework.aspnet:275008
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| I know this issue has been brought up many times, but I have tried many
of
| the solutions to no avail. I wanted to give my specific case to see if
| someone could be of any help.
|
| We are using the sessionstate inproc mode and users are randomly losing
| their session. I do not believe it is happening across all users at one
| time. It seems to happen to different users at different times, but I am
| only going off heresay. The aspnet worker process is not showing a
restart
| in the event log, do I need to turn on some setting in order for the
restart
| to be logged? Our production server is a 4 proc server running win 2003.
We
| are not running a web farm or garden. We do not have virus scanning
turned
| on for the asp.net application folders. Our timeout is 240 minutes and
it is
| set in IIS and in the web.config file. With this high timeout setting,
some
| users still get timed out after a few minutes.
|
| Session dropping seems to be a popular issue with inproc, but most of the
| threads refer to the worker process restarting for some reason. If the
| worker process restart is not the cause, is there any other thing we can
try
| or something we can log to determine why the sessions are dropping.
|

Nov 18 '05 #3
IIS6 ? I've heard you could use an isolation mode that make requests to be
handled by diffrent processes...

Patrice

--

<fb*****@online.nospam> a écrit dans le message de
news:5A**********************************@microsof t.com...
I know this issue has been brought up many times, but I have tried many of
the solutions to no avail. I wanted to give my specific case to see if
someone could be of any help.

We are using the sessionstate inproc mode and users are randomly losing
their session. I do not believe it is happening across all users at one
time. It seems to happen to different users at different times, but I am
only going off heresay. The aspnet worker process is not showing a restart in the event log, do I need to turn on some setting in order for the restart to be logged? Our production server is a 4 proc server running win 2003. We are not running a web farm or garden. We do not have virus scanning turned on for the asp.net application folders. Our timeout is 240 minutes and it is set in IIS and in the web.config file. With this high timeout setting, some users still get timed out after a few minutes.

Session dropping seems to be a popular issue with inproc, but most of the
threads refer to the worker process restarting for some reason. If the
worker process restart is not the cause, is there any other thing we can try or something we can log to determine why the sessions are dropping.

Nov 18 '05 #4
I ran perfmon in our test environment (the problem occurs here too, win 2003,
2 processors) on the asp.net v1.1.4322 object and did not see the application
restarts counter go up. The counter was static during the whole test and I
was kicked out after about an hour when our timeout setting is set to 4
hours.

Yes, we are using forms authentication and the timeout value is in the forms
section:
<sessionState cookieless="false" timeout="240" mode="InProc" />
<authentication mode="Forms">
<forms name="AUTH" loginUrl="login.aspx" protection="All"
timeout="240"></forms></authentication>

How can I tell if the formauthenticationticket expires? Is there anything
else we can try? Would switching to state server fix this issue if it is not
a app restart issue that is causing the problem in inproc mode?
"Jim Cheshire [MSFT]" wrote:
Hi,

Session state is often lost when the application domain unloads. This is
not the same as seeing the process cycle. In order to see if the app
domain has recycled, you will need to monitor the ASP.NET v1.1.4322 object
in Performance Monitor and see if the Application Restarts counter
increments.

You may also want to check your Forms authentication timeout. I don't know
for sure you are using Forms auth, but you did say that people are being
forced to log back in. I've seen plenty of cases where it's not Session
state getting lost, but the FormsAuthenticationTicket expiring.

Jim Cheshire [MSFT]
MCP+I, MCSE, MCSD, MCDBA
ASP.NET Developer Support
ja******@online.microsoft.com

This post is provided "AS-IS" with no warranties and confers no rights.
--------------------
| Thread-Topic: Users are randomly losing session and are forced to relogin
| thread-index: AcTHNLNq4nrPZS/qQKGfZAScPKm6Gw==
| X-WBNR-Posting-Host: 198.179.10.7
| From: =?Utf-8?B?ZmJ3aGl0ZUBvbmxpbmUubm9zcGFt?= <fb*****@online.nospam>
| Subject: Users are randomly losing session and are forced to relogin
| Date: Wed, 10 Nov 2004 06:51:03 -0800
| Lines: 19
| Message-ID: <5A**********************************@microsoft.co m>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGXA0
3.phx.gbl
| Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.framework.aspnet:275008
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| I know this issue has been brought up many times, but I have tried many
of
| the solutions to no avail. I wanted to give my specific case to see if
| someone could be of any help.
|
| We are using the sessionstate inproc mode and users are randomly losing
| their session. I do not believe it is happening across all users at one
| time. It seems to happen to different users at different times, but I am
| only going off heresay. The aspnet worker process is not showing a
restart
| in the event log, do I need to turn on some setting in order for the
restart
| to be logged? Our production server is a 4 proc server running win 2003.
We
| are not running a web farm or garden. We do not have virus scanning
turned
| on for the asp.net application folders. Our timeout is 240 minutes and
it is
| set in IIS and in the web.config file. With this high timeout setting,
some
| users still get timed out after a few minutes.
|
| Session dropping seems to be a popular issue with inproc, but most of the
| threads refer to the worker process restarting for some reason. If the
| worker process restart is not the cause, is there any other thing we can
try
| or something we can log to determine why the sessions are dropping.
|

Nov 18 '05 #5
The Application Restarts counter won't work right on Windows 2003. Poor
reading on my part. Sorry about that.

Does everyone lose Session state when this happens?

You can tell if it really is Session timing out by adding some logging code
to the Session_End event. You can also track application restarts by
adding logging code to the Application_End event.

If you still can't get the data you need, you can open a case with us and
we'll help you configure an HttpModule that we can use to log application
restarts.

Jim Cheshire [MSFT]
MCP+I, MCSE, MCSD, MCDBA
ASP.NET Developer Support
ja******@online.microsoft.com

This post is provided "AS-IS" with no warranties and confers no rights.

--------------------
| Thread-Topic: Users are randomly losing session and are forced to relogin
| thread-index: AcTIF/0Vid1i6IOdSt6WpzkqcfYq5A==
| X-WBNR-Posting-Host: 198.179.10.7
| From: =?Utf-8?B?ZmJ3aGl0ZUBvbmxpbmUubm9zcGFt?= <fb*****@online.nospam>
| References: <5A**********************************@microsoft.co m>
<pb**************@cpmsftngxa10.phx.gbl>
| Subject: RE: Users are randomly losing session and are forced to relogin
| Date: Thu, 11 Nov 2004 09:58:02 -0800
| Lines: 97
| Message-ID: <4C**********************************@microsoft.co m>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
| Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.framework.aspnet:275394
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| I ran perfmon in our test environment (the problem occurs here too, win
2003,
| 2 processors) on the asp.net v1.1.4322 object and did not see the
application
| restarts counter go up. The counter was static during the whole test and
I
| was kicked out after about an hour when our timeout setting is set to 4
| hours.
|
| Yes, we are using forms authentication and the timeout value is in the
forms
| section:
| <sessionState cookieless="false" timeout="240" mode="InProc" />
| <authentication mode="Forms">
| <forms name="AUTH" loginUrl="login.aspx" protection="All"
| timeout="240"></forms></authentication>
|
| How can I tell if the formauthenticationticket expires? Is there
anything
| else we can try? Would switching to state server fix this issue if it is
not
| a app restart issue that is causing the problem in inproc mode?
|
|
| "Jim Cheshire [MSFT]" wrote:
|
| > Hi,
| >
| > Session state is often lost when the application domain unloads. This
is
| > not the same as seeing the process cycle. In order to see if the app
| > domain has recycled, you will need to monitor the ASP.NET v1.1.4322
object
| > in Performance Monitor and see if the Application Restarts counter
| > increments.
| >
| > You may also want to check your Forms authentication timeout. I don't
know
| > for sure you are using Forms auth, but you did say that people are
being
| > forced to log back in. I've seen plenty of cases where it's not
Session
| > state getting lost, but the FormsAuthenticationTicket expiring.
| >
| > Jim Cheshire [MSFT]
| > MCP+I, MCSE, MCSD, MCDBA
| > ASP.NET Developer Support
| > ja******@online.microsoft.com
| >
| > This post is provided "AS-IS" with no warranties and confers no rights.
| >
| >
| > --------------------
| > | Thread-Topic: Users are randomly losing session and are forced to
relogin
| > | thread-index: AcTHNLNq4nrPZS/qQKGfZAScPKm6Gw==
| > | X-WBNR-Posting-Host: 198.179.10.7
| > | From: =?Utf-8?B?ZmJ3aGl0ZUBvbmxpbmUubm9zcGFt?= <fb*****@online.nospam>
| > | Subject: Users are randomly losing session and are forced to relogin
| > | Date: Wed, 10 Nov 2004 06:51:03 -0800
| > | Lines: 19
| > | Message-ID: <5A**********************************@microsoft.co m>
| > | MIME-Version: 1.0
| > | Content-Type: text/plain;
| > | charset="Utf-8"
| > | Content-Transfer-Encoding: 7bit
| > | X-Newsreader: Microsoft CDO for Windows 2000
| > | Content-Class: urn:content-classes:message
| > | Importance: normal
| > | Priority: normal
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
| > | Path:
| >
cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGXA0
| > 3.phx.gbl
| > | Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.aspnet:275008
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > |
| > | I know this issue has been brought up many times, but I have tried
many
| > of
| > | the solutions to no avail. I wanted to give my specific case to see
if
| > | someone could be of any help.
| > |
| > | We are using the sessionstate inproc mode and users are randomly
losing
| > | their session. I do not believe it is happening across all users at
one
| > | time. It seems to happen to different users at different times, but
I am
| > | only going off heresay. The aspnet worker process is not showing a
| > restart
| > | in the event log, do I need to turn on some setting in order for the
| > restart
| > | to be logged? Our production server is a 4 proc server running win
2003.
| > We
| > | are not running a web farm or garden. We do not have virus scanning
| > turned
| > | on for the asp.net application folders. Our timeout is 240 minutes
and
| > it is
| > | set in IIS and in the web.config file. With this high timeout
setting,
| > some
| > | users still get timed out after a few minutes.
| > |
| > | Session dropping seems to be a popular issue with inproc, but most of
the
| > | threads refer to the worker process restarting for some reason. If
the
| > | worker process restart is not the cause, is there any other thing we
can
| > try
| > | or something we can log to determine why the sessions are dropping.
| > |
| >
| >
|

Nov 18 '05 #6

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

Similar topics

4
by: Ryan Hubbard | last post by:
I would like to limit multiple logins for a user. How and when does the session id expire? Can I set it so after x minutes of inactivity it would expire. How do I check if session id exists? If...
1
by: Scott Lyon | last post by:
I'm maintaining (read: I didn't write it, nor do I have the time to spend to rewrite it) an application that is suddenly giving me grief. The reason I say suddenly, is because we're in the...
1
by: Scott Wickham | last post by:
I'm having a problem saving session information on one form and retrieving it on a subsequent form...for only one out of a number of users. Actually, I'm not absolutely certain it's a session...
0
by: CJ | last post by:
Hi We have Session Data lost randomly and Session State expired early. Our Intranet Application uses Window Server 2003 and .Net Framework 1.1. We set Session Time out to 60 minutes. but user...
1
by: ramsankar | last post by:
Hi All, When viewing my php page using IE6.0, I am losing my session data. In the first page I am setting a value to the session variable. In the next page "SOME TIME" the value of the...
4
by: Stephen | last post by:
I have a .NET (1.1 framework) application that is losing a session variable on only a few PC's. The main page is loading up in a frame in a Portal application. On the Page_Load it stores an...
9
by: Adrian Parker | last post by:
We have a website that works everywhere but on a few PCs on this one site.. Asp.Net 1.1 Server = Windows 2003 Client = XP In the web.config we use - cookieless="false" in the browser settings...
1
by: Shahar Nechmad | last post by:
I'm using ASP.NEt 2.0. I use the session to save important information about the user current session (for example the current project he is working on). I use those variables in almost every web...
3
by: =?Utf-8?B?V2FubmFiZQ==?= | last post by:
When we want to make updates to our application, we have to make sure all users are logged out, or they will get kicked out when we copy a new DLL. Our web application, using the 1.1 framework,...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.