Welcome to HostingForumz.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

lost session

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Related Topics:
IIS 6 lost the session - I have an ASP site running under IIS6. Session timeout is set to 20 minutes but it persist for few second only. Instead it works fine in IIS 5 isolation mode.

Session Lost? - Here is a little situation that we are having on 2 of our load balanced web servers, any help would be greatly When I view a page in http and then switch to a page I get bounced to the other web server. This creates an issue..

Session variables lost - I write a basic test page as below; HTML PUBLIC HTML 4.0 <meta <meta

Session variables being lost - I have just installed Windows 2003 Server and my website from Windows 2000 Small Business Server. I got working. But now when I naviagte between ASP pages the Session variables are lost. The problem is It..

Session variables lost - ok, i just setup IIS to run on a server, but session variables aren't kept across request to the server, i've checked KB Articles 303881 and 182891, the first one was about disabling the antivirus to not to scan the that wasn't the..
Next:  IIS: Is there a tool to inventorize websites/folders/virtual fo..  
Author Message
Juan Bautista

External


Since: Jan 14, 2008
Posts: 3



(Msg. 1) Posted: Mon Jan 14, 2008 12:49 am
Post subject: lost session
Archived from groups: microsoft>public>inetserver>iis (more info?)

We have an iiS 6.0 server and a classic ASP application but randomly some
users lost sessions and have to logon to the server again.
I have disabled any option of recycling app pools, I have session timeout
set to 60 minutes and I have Web Garden set to 1. However there are users
(not always the same, and not always doing the same things) that lost
sessions variables in a few minutes.

I've bben working on this issue for two weeks but I haven`t found any
solution yet.

Does anyone have any idea of what could be happening or where can I find any
information that could help me?

 >> Stay informed about: lost session 
Back to top
Login to vote
Anthony Jones

External


Since: Jan 28, 2006
Posts: 170



(Msg. 2) Posted: Tue Jan 15, 2008 6:07 am
Post subject: Re: lost session [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Juan Bautista" <JuanBautista.DeleteThis@discussions.microsoft.com> wrote in message
news:4FBC6AEC-9758-4796-B31E-C203ECE3ABEE@microsoft.com...
> We have an iiS 6.0 server and a classic ASP application but randomly some
> users lost sessions and have to logon to the server again.
> I have disabled any option of recycling app pools, I have session timeout
> set to 60 minutes and I have Web Garden set to 1. However there are users
> (not always the same, and not always doing the same things) that lost
> sessions variables in a few minutes.
>
> I've bben working on this issue for two weeks but I haven`t found any
> solution yet.
>
> Does anyone have any idea of what could be happening or where can I find
any
> information that could help me?

Anything in the event logs that might give you a clue?

Is it possible clients opened new windows on to a new instance of the
browser they were using? Or took other actions that may have resulted in
the loss of the session cookie?

Does the web server run anti-virus software?

--
Anthony Jones - MVP ASP/ASP.NET

 >> Stay informed about: lost session 
Back to top
Login to vote
Juan Bautista

External


Since: Jan 14, 2008
Posts: 3



(Msg. 3) Posted: Tue Jan 15, 2008 6:07 am
Post subject: Re: lost session [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Anthony Jones" wrote:

> "Juan Bautista" <JuanBautista RemoveThis @discussions.microsoft.com> wrote in message
> news:4FBC6AEC-9758-4796-B31E-C203ECE3ABEE@microsoft.com...
> > We have an iiS 6.0 server and a classic ASP application but randomly some
> > users lost sessions and have to logon to the server again.
> > I have disabled any option of recycling app pools, I have session timeout
> > set to 60 minutes and I have Web Garden set to 1. However there are users
> > (not always the same, and not always doing the same things) that lost
> > sessions variables in a few minutes.
> >
> > I've bben working on this issue for two weeks but I haven`t found any
> > solution yet.
> >
> > Does anyone have any idea of what could be happening or where can I find
> any
> > information that could help me?
>
> Anything in the event logs that might give you a clue?
>
> Is it possible clients opened new windows on to a new instance of the
> browser they were using? Or took other actions that may have resulted in
> the loss of the session cookie?
>
> Does the web server run anti-virus software?
>
> --
> Anthony Jones - MVP ASP/ASP.NET
>
>
>
In the event log everyting seems to be ok. I have logged the cookie in the
iis logs and I have written an asp than gives me the sessionID in the server
in order to compare both values but the cookie sent by client that iis logs
is encrypted so we can´t compare it.

I don´t think that may be a problem with the browser because sometimes it
has happend to users with only one window opened, they log on and after one
or two minutes receive the session cancelled message. Then they try again and
everytihng works fine.

I'm really lost with this problem, and my users begin to be very irritate.
 >> Stay informed about: lost session 
Back to top
Login to vote
Anthony Jones

External


Since: Jan 28, 2006
Posts: 170



(Msg. 4) Posted: Tue Jan 15, 2008 11:06 am
Post subject: Re: lost session [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Juan Bautista" <JuanBautista DeleteThis @discussions.microsoft.com> wrote in message
news:29F5D0BB-84F4-422A-9A7A-811FB1F1444E@microsoft.com...
>
>
> "Anthony Jones" wrote:
>
> > "Juan Bautista" <JuanBautista DeleteThis @discussions.microsoft.com> wrote in
message
> > news:4FBC6AEC-9758-4796-B31E-C203ECE3ABEE@microsoft.com...
> > > We have an iiS 6.0 server and a classic ASP application but randomly
some
> > > users lost sessions and have to logon to the server again.
> > > I have disabled any option of recycling app pools, I have session
timeout
> > > set to 60 minutes and I have Web Garden set to 1. However there are
users
> > > (not always the same, and not always doing the same things) that lost
> > > sessions variables in a few minutes.
> > >
> > > I've bben working on this issue for two weeks but I haven`t found any
> > > solution yet.
> > >
> > > Does anyone have any idea of what could be happening or where can I
find
> > any
> > > information that could help me?
> >
> > Anything in the event logs that might give you a clue?
> >
> > Is it possible clients opened new windows on to a new instance of the
> > browser they were using? Or took other actions that may have resulted
in
> > the loss of the session cookie?
> >
> > Does the web server run anti-virus software?
> >
> > --
> > Anthony Jones - MVP ASP/ASP.NET
> >
> >
> >
> In the event log everyting seems to be ok. I have logged the cookie in the
> iis logs and I have written an asp than gives me the sessionID in the
server
> in order to compare both values but the cookie sent by client that iis
logs
> is encrypted so we can´t compare it.
>
> I don´t think that may be a problem with the browser because sometimes it
> has happend to users with only one window opened, they log on and after
one
> or two minutes receive the session cancelled message. Then they try again
and
> everytihng works fine.
>
> I'm really lost with this problem, and my users begin to be very irritate.

I'm not sure what a 'session cancelled message' is?

It does sound like the app pool is recycling or some other reset that
requires a new process to be spun up.

Another possible cause is code somewhere is calling Session.abandon.

Another possibility, how does code in ASP pages detect that the session has
been reset? (Typically a UserID in the session object not being set).
Could code be accidentally destroying that value?


--
Anthony Jones - MVP ASP/ASP.NET
 >> Stay informed about: lost session 
Back to top
Login to vote
Juan Bautista

External


Since: Jan 14, 2008
Posts: 3



(Msg. 5) Posted: Thu Jan 17, 2008 1:30 am
Post subject: Re: lost session [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Anthony Jones" wrote:

> "Juan Bautista" <JuanBautista.RemoveThis@discussions.microsoft.com> wrote in message
> news:29F5D0BB-84F4-422A-9A7A-811FB1F1444E@microsoft.com...
> >
> >
> > "Anthony Jones" wrote:
> >
> > > "Juan Bautista" <JuanBautista.RemoveThis@discussions.microsoft.com> wrote in
> message
> > > news:4FBC6AEC-9758-4796-B31E-C203ECE3ABEE@microsoft.com...
> > > > We have an iiS 6.0 server and a classic ASP application but randomly
> some
> > > > users lost sessions and have to logon to the server again.
> > > > I have disabled any option of recycling app pools, I have session
> timeout
> > > > set to 60 minutes and I have Web Garden set to 1. However there are
> users
> > > > (not always the same, and not always doing the same things) that lost
> > > > sessions variables in a few minutes.
> > > >
> > > > I've bben working on this issue for two weeks but I haven`t found any
> > > > solution yet.
> > > >
> > > > Does anyone have any idea of what could be happening or where can I
> find
> > > any
> > > > information that could help me?
> > >
> > > Anything in the event logs that might give you a clue?
> > >
> > > Is it possible clients opened new windows on to a new instance of the
> > > browser they were using? Or took other actions that may have resulted
> in
> > > the loss of the session cookie?
> > >
> > > Does the web server run anti-virus software?
> > >
> > > --
> > > Anthony Jones - MVP ASP/ASP.NET
> > >
> > >
> > >
> > In the event log everyting seems to be ok. I have logged the cookie in the
> > iis logs and I have written an asp than gives me the sessionID in the
> server
> > in order to compare both values but the cookie sent by client that iis
> logs
> > is encrypted so we can´t compare it.
> >
> > I don´t think that may be a problem with the browser because sometimes it
> > has happend to users with only one window opened, they log on and after
> one
> > or two minutes receive the session cancelled message. Then they try again
> and
> > everytihng works fine.
> >
> > I'm really lost with this problem, and my users begin to be very irritate.
>
> I'm not sure what a 'session cancelled message' is?
>
> It does sound like the app pool is recycling or some other reset that
> requires a new process to be spun up.
>
> Another possible cause is code somewhere is calling Session.abandon.
>
> Another possibility, how does code in ASP pages detect that the session has
> been reset? (Typically a UserID in the session object not being set).
> Could code be accidentally destroying that value?
>
>
> --
> Anthony Jones - MVP ASP/ASP.NET
>
>
>Thanks for your response Anthony

I've disabled every option concerning app pool recycliing in IIS, so this
is not the problem.

As you say we check for a "" value in the UserID to see is the varibles are
still on. Perhaps it could be a problem with the code but then, why does it
happen in a random way and in differents asp pages? If it was a problem of
code it always happen in the same place or doing the same things isn't it? or
I'm wrong.

Regards.
 >> Stay informed about: lost session 
Back to top
Login to vote
Gwilym

External


Since: Jan 22, 2008
Posts: 1



(Msg. 6) Posted: Tue Jan 22, 2008 4:18 pm
Post subject: Re: lost session [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Juan Bautista" wrote:

>
>
> "Anthony Jones" wrote:
>
> > "Juan Bautista" <JuanBautista DeleteThis @discussions.microsoft.com> wrote in message
> > news:29F5D0BB-84F4-422A-9A7A-811FB1F1444E@microsoft.com...
> > >
> > >
> > > "Anthony Jones" wrote:
> > >
> > > > "Juan Bautista" <JuanBautista DeleteThis @discussions.microsoft.com> wrote in
> > message
> > > > news:4FBC6AEC-9758-4796-B31E-C203ECE3ABEE@microsoft.com...
> > > > > We have an iiS 6.0 server and a classic ASP application but randomly
> > some
> > > > > users lost sessions and have to logon to the server again.
> > > > > I have disabled any option of recycling app pools, I have session
> > timeout
> > > > > set to 60 minutes and I have Web Garden set to 1. However there are
> > users
> > > > > (not always the same, and not always doing the same things) that lost
> > > > > sessions variables in a few minutes.
> > > > >
> > > > > I've bben working on this issue for two weeks but I haven`t found any
> > > > > solution yet.
> > > > >
> > > > > Does anyone have any idea of what could be happening or where can I
> > find
> > > > any
> > > > > information that could help me?
> > > >
> > > > Anything in the event logs that might give you a clue?
> > > >
> > > > Is it possible clients opened new windows on to a new instance of the
> > > > browser they were using? Or took other actions that may have resulted
> > in
> > > > the loss of the session cookie?
> > > >
> > > > Does the web server run anti-virus software?
> > > >
> > > > --
> > > > Anthony Jones - MVP ASP/ASP.NET
> > > >
> > > >
> > > >
> > > In the event log everyting seems to be ok. I have logged the cookie in the
> > > iis logs and I have written an asp than gives me the sessionID in the
> > server
> > > in order to compare both values but the cookie sent by client that iis
> > logs
> > > is encrypted so we can´t compare it.
> > >
> > > I don´t think that may be a problem with the browser because sometimes it
> > > has happend to users with only one window opened, they log on and after
> > one
> > > or two minutes receive the session cancelled message. Then they try again
> > and
> > > everytihng works fine.
> > >
> > > I'm really lost with this problem, and my users begin to be very irritate.
> >
> > I'm not sure what a 'session cancelled message' is?
> >
> > It does sound like the app pool is recycling or some other reset that
> > requires a new process to be spun up.
> >
> > Another possible cause is code somewhere is calling Session.abandon.
> >
> > Another possibility, how does code in ASP pages detect that the session has
> > been reset? (Typically a UserID in the session object not being set).
> > Could code be accidentally destroying that value?
> >
> >
> > --
> > Anthony Jones - MVP ASP/ASP.NET
> >
> >
> >Thanks for your response Anthony
>
> I've disabled every option concerning app pool recycliing in IIS, so this
> is not the problem.
>
> As you say we check for a "" value in the UserID to see is the varibles are
> still on. Perhaps it could be a problem with the code but then, why does it
> happen in a random way and in differents asp pages? If it was a problem of
> code it always happen in the same place or doing the same things isn't it? or
> I'm wrong.
>
> Regards.
>

I'm getting this problem sporadically on three unrelated apps on three
different servers (all hosted by different companies). We only received
reports of it happening last week.

The symptom I am seeing is the server will occasionally send back a new
session ID cookie. Subsequently, the browser will continue to send back
several session cookies and the server will randomly choose between the
sessions.

I am currently in discussions with the hosting providers to find common
factors. In particular looking into the app pool worker process numbers to
make sure they're all at 1 process.

The fact that the sessions that apprently get 'replaced' get dug up again on
subsequent requests indicates they aren't being totally recycled.
 >> Stay informed about: lost session 
Back to top
Login to vote
pier

External


Since: Mar 05, 2008
Posts: 1



(Msg. 7) Posted: Wed Mar 05, 2008 9:53 am
Post subject: RE: lost session [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi juan Bautista,
i have the same problem and i'm getting crazy!

my web app lost Session ID and i can't find the solution.

Have you solved the problem?????

I've tested that using ISS 5 Isolation the problem disappears but my Outlook
Web Acess doesn't works in this mode.....

So this is not my solution....

see you
Pierangelo

"Juan Bautista" wrote:

> We have an iiS 6.0 server and a classic ASP application but randomly some
> users lost sessions and have to logon to the server again.
> I have disabled any option of recycling app pools, I have session timeout
> set to 60 minutes and I have Web Garden set to 1. However there are users
> (not always the same, and not always doing the same things) that lost
> sessions variables in a few minutes.
>
> I've bben working on this issue for two weeks but I haven`t found any
> solution yet.
>
> Does anyone have any idea of what could be happening or where can I find any
> information that could help me?
 >> Stay informed about: lost session 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]