472,354 Members | 1,155 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,354 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 5047
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: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
1
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. header("Location:".$urlback); Is this the right layout the...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it so the python app could use a http request to get...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...

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.