By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,133 Members | 1,092 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,133 IT Pros & Developers. It's quick & easy.

Sessions randomly lost using state server

P: n/a
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!
Nov 19 '05 #1
Share this Question
Share on Google+
9 Replies


P: n/a
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" <An******@discussions.microsoft.com> wrote in message
news:D2**********************************@microsof t.com...
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!

Nov 19 '05 #2

P: n/a
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" wrote:
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" <An******@discussions.microsoft.com> wrote in message
news:D2**********************************@microsof t.com...
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!


Nov 19 '05 #3

P: n/a
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" <An******@discussions.microsoft.com> wrote in message
news:97**********************************@microsof t.com...
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" wrote:
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" <An******@discussions.microsoft.com> wrote in message
news:D2**********************************@microsof t.com...
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!


Nov 19 '05 #4

P: n/a
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" wrote:
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" <An******@discussions.microsoft.com> wrote in message
news:97**********************************@microsof t.com...
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" wrote:
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" <An******@discussions.microsoft.com> wrote in message
news:D2**********************************@microsof t.com...
> 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!


Nov 19 '05 #5

P: n/a
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" <An******@discussions.microsoft.com> wrote in message
news:D3**********************************@microsof t.com...
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" wrote:
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" <An******@discussions.microsoft.com> wrote in message
news:97**********************************@microsof t.com...
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" wrote:

> 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" <An******@discussions.microsoft.com> wrote in message
> news:D2**********************************@microsof t.com...
> > 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!
>
>
>


Nov 19 '05 #6

P: n/a
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" <www.lulu.com/owc> wrote in message
news:ub**************@TK2MSFTNGP09.phx.gbl...
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" <An******@discussions.microsoft.com> wrote in message
news:D3**********************************@microsof t.com...
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" wrote:
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" <An******@discussions.microsoft.com> wrote in message
news:97**********************************@microsof t.com...
> 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" wrote:
>
> > 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" <An******@discussions.microsoft.com> wrote in message
> > news:D2**********************************@microsof t.com...
> > > 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!
> >
> >
> >


Nov 19 '05 #7

P: n/a
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" wrote:
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" <www.lulu.com/owc> wrote in message
news:ub**************@TK2MSFTNGP09.phx.gbl...
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" <An******@discussions.microsoft.com> wrote in message
news:D3**********************************@microsof t.com...
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" wrote:

> 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" <An******@discussions.microsoft.com> wrote in message
> news:97**********************************@microsof t.com...
> > 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" wrote:
> >
> > > 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" <An******@discussions.microsoft.com> wrote in message
> > > news:D2**********************************@microsof t.com...
> > > > 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!
> > >
> > >
> > >
>
>
>



Nov 19 '05 #8

P: n/a
AndersBj wrote:
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


Nov 19 '05 #9

P: n/a
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
-------------------------------------------------------

"JIMCO Software" <co*******@jimcosoftware.com> wrote in message
news:Oc**************@TK2MSFTNGP10.phx.gbl...
AndersBj wrote:
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

Nov 19 '05 #10

This discussion thread is closed

Replies have been disabled for this discussion.