Sessions randomly lost using state server

G

Guest

Hi all,
I have a web application that uses State Server for session handling. The
web application randomly loses all session variables.

The sessions are not always lost, sometimes I can use the application for a
day or so, and sometimes the sessions are lost every 5 minutes.

I've read some discussions about different things that cause the application
to restart and then lose its sessions. But this only occurs when using InProc
as session handling....

Any ideas would be appreciated!
 
A

Alvin Bruney - ASP.NET MVP

check your server logs, see if the state server application has been
recycled for any reason

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
 
G

Guest

Hi, thanks for your reply.

The only thing I can find in the event log that looks a bit strange is the
following:

"State server stops listening"

Followed by by this shortly after:

"State server starts listening with 6 listeners"


What does these events mean? Is there any other logs I can check?

Thanks in advance,

/Anders


Alvin Bruney - ASP.NET MVP said:
check your server logs, see if the state server application has been
recycled for any reason

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------



AndersBj said:
Hi all,
I have a web application that uses State Server for session handling. The
web application randomly loses all session variables.

The sessions are not always lost, sometimes I can use the application for a
day or so, and sometimes the sessions are lost every 5 minutes.

I've read some discussions about different things that cause the application
to restart and then lose its sessions. But this only occurs when using InProc
as session handling....

Any ideas would be appreciated!
 
A

Alvin Bruney - ASP.NET MVP

hmm, i've never seen this before. Obviously something is amiss. have you
tried googling for it. I did find a couple links but these were for sql
server with known issues. It's probably an issue as well.

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------



AndersBj said:
Hi, thanks for your reply.

The only thing I can find in the event log that looks a bit strange is the
following:

"State server stops listening"

Followed by by this shortly after:

"State server starts listening with 6 listeners"


What does these events mean? Is there any other logs I can check?

Thanks in advance,

/Anders


Alvin Bruney - ASP.NET MVP said:
check your server logs, see if the state server application has been
recycled for any reason

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------



AndersBj said:
Hi all,
I have a web application that uses State Server for session handling. The
web application randomly loses all session variables.

The sessions are not always lost, sometimes I can use the application
for
a
day or so, and sometimes the sessions are lost every 5 minutes.

I've read some discussions about different things that cause the application
to restart and then lose its sessions. But this only occurs when using InProc
as session handling....

Any ideas would be appreciated!
 
G

Guest

I did some Googling, but nothing much came up. I also checked the time for
these events with the time when the problems have occured and they don't seem
to match. So I'm guessing that there is someting else that is causing this...

Any other ideas would be greatly appreciated.

/Anders



Alvin Bruney - ASP.NET MVP said:
hmm, i've never seen this before. Obviously something is amiss. have you
tried googling for it. I did find a couple links but these were for sql
server with known issues. It's probably an issue as well.

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------



AndersBj said:
Hi, thanks for your reply.

The only thing I can find in the event log that looks a bit strange is the
following:

"State server stops listening"

Followed by by this shortly after:

"State server starts listening with 6 listeners"


What does these events mean? Is there any other logs I can check?

Thanks in advance,

/Anders


Alvin Bruney - ASP.NET MVP said:
check your server logs, see if the state server application has been
recycled for any reason

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------



Hi all,
I have a web application that uses State Server for session handling. The
web application randomly loses all session variables.

The sessions are not always lost, sometimes I can use the application for
a
day or so, and sometimes the sessions are lost every 5 minutes.

I've read some discussions about different things that cause the
application
to restart and then lose its sessions. But this only occurs when using
InProc
as session handling....

Any ideas would be appreciated!
 
A

Alvin Bruney - ASP.NET MVP

I'll take a look at this in the next 1/2 hour or so.

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------



AndersBj said:
I did some Googling, but nothing much came up. I also checked the time for
these events with the time when the problems have occured and they don't seem
to match. So I'm guessing that there is someting else that is causing this...

Any other ideas would be greatly appreciated.

/Anders



Alvin Bruney - ASP.NET MVP said:
hmm, i've never seen this before. Obviously something is amiss. have you
tried googling for it. I did find a couple links but these were for sql
server with known issues. It's probably an issue as well.

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------



AndersBj said:
Hi, thanks for your reply.

The only thing I can find in the event log that looks a bit strange is the
following:

"State server stops listening"

Followed by by this shortly after:

"State server starts listening with 6 listeners"


What does these events mean? Is there any other logs I can check?

Thanks in advance,

/Anders


:

check your server logs, see if the state server application has been
recycled for any reason

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------



Hi all,
I have a web application that uses State Server for session
handling.
The
web application randomly loses all session variables.

The sessions are not always lost, sometimes I can use the
application
for
a
day or so, and sometimes the sessions are lost every 5 minutes.

I've read some discussions about different things that cause the
application
to restart and then lose its sessions. But this only occurs when using
InProc
as session handling....

Any ideas would be appreciated!
 
A

Alvin Bruney - ASP.NET MVP

It looks like the state server is stopping intermittently - or something may
be killing the process. So you will need to add some counters to find out
why. Some good ones are TCP/IP connections and memory.

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------



Alvin Bruney - ASP.NET MVP said:
I'll take a look at this in the next 1/2 hour or so.

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------



AndersBj said:
I did some Googling, but nothing much came up. I also checked the time for
these events with the time when the problems have occured and they don't seem
to match. So I'm guessing that there is someting else that is causing this...

Any other ideas would be greatly appreciated.

/Anders



Alvin Bruney - ASP.NET MVP said:
hmm, i've never seen this before. Obviously something is amiss. have you
tried googling for it. I did find a couple links but these were for sql
server with known issues. It's probably an issue as well.

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------



Hi, thanks for your reply.

The only thing I can find in the event log that looks a bit strange
is
the
following:

"State server stops listening"

Followed by by this shortly after:

"State server starts listening with 6 listeners"


What does these events mean? Is there any other logs I can check?

Thanks in advance,

/Anders


:

check your server logs, see if the state server application has been
recycled for any reason

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------



Hi all,
I have a web application that uses State Server for session handling.
The
web application randomly loses all session variables.

The sessions are not always lost, sometimes I can use the application
for
a
day or so, and sometimes the sessions are lost every 5 minutes.

I've read some discussions about different things that cause the
application
to restart and then lose its sessions. But this only occurs when using
InProc
as session handling....

Any ideas would be appreciated!
 
G

Guest

Thanks for your tips.

I have done some more testing and I have realized that the problem only
occurs when the main window opens a new window. The session variables are
lost in the new window but are still valid in the main window. This should
indicate that there is no problem with the state server as I first thought.

I'm guessing that the problem is connected with the client some how. It
seems to treat the new window as a completely different IE session. The
strange thing is that this only happens occasionally....

I'm completely lost on this one... :-(

Regards,

Anders



Alvin Bruney - ASP.NET MVP said:
It looks like the state server is stopping intermittently - or something may
be killing the process. So you will need to add some counters to find out
why. Some good ones are TCP/IP connections and memory.

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------



Alvin Bruney - ASP.NET MVP said:
I'll take a look at this in the next 1/2 hour or so.

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------



AndersBj said:
I did some Googling, but nothing much came up. I also checked the time for
these events with the time when the problems have occured and they don't seem
to match. So I'm guessing that there is someting else that is causing this...

Any other ideas would be greatly appreciated.

/Anders



:

hmm, i've never seen this before. Obviously something is amiss. have you
tried googling for it. I did find a couple links but these were for sql
server with known issues. It's probably an issue as well.

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------



Hi, thanks for your reply.

The only thing I can find in the event log that looks a bit strange
is
the
following:

"State server stops listening"

Followed by by this shortly after:

"State server starts listening with 6 listeners"


What does these events mean? Is there any other logs I can check?

Thanks in advance,

/Anders


:

check your server logs, see if the state server application has been
recycled for any reason

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------



Hi all,
I have a web application that uses State Server for session handling.
The
web application randomly loses all session variables.

The sessions are not always lost, sometimes I can use the application
for
a
day or so, and sometimes the sessions are lost every 5 minutes.

I've read some discussions about different things that cause the
application
to restart and then lose its sessions. But this only occurs when using
InProc
as session handling....

Any ideas would be appreciated!
 
J

JIMCO Software

AndersBj said:
Thanks for your tips.

I have done some more testing and I have realized that the problem
only occurs when the main window opens a new window. The session
variables are lost in the new window but are still valid in the main
window. This should indicate that there is no problem with the state
server as I first thought.

I'm guessing that the problem is connected with the client some how.
It seems to treat the new window as a completely different IE
session. The strange thing is that this only happens occasionally....

I've seen this happen. It's been a long time and I'm trying to remember,
but I believe that in my case, the behavior would change based upon whether
an IE window was open already when the Web site was first launched. In
other words, close all IE windows and then open a new one and browse to
Microsoft.com. After you do that, open another window and browse to your
app. Try to repro the Session loss.

After you do that, try the same except make sure no other IE windows are
open when you first browse to your app. The behavior should be different.

It's an issue with IE. You can actually use Spy++ and see that the windows
are owned by separate instances of IE.

--
Jim Cheshire
JIMCO Software
http://www.jimcosoftware.com

FrontPage add-ins for FrontPage 2000 - 2003
 
A

Alvin Bruney - ASP.NET MVP

that's some important info right there!

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,071
Latest member
MetabolicSolutionsKeto

Latest Threads

Top