Setup:

- global.asa
- Contains Session_Start event which checks to see if the user
has a cookie...if so, connect to the database and load their
settings into Session from the database.

- login.asp
- Writes a cookie and loads user settings into Session from the
database. (They will not go to login.asp each visit to the site.
After they are authenticated the cookie will prevent forcing login for
24 hrs.)

The problem we are having is that after the user has logged in and has
a valid cookie, an exception may trigger the recycling of a worker
process causing them to recieve a new session. At this point, it
appears that the Session_Start event is not firing because the cookie
is available and the user settings are not being loaded into Session.
It is as if the Session_Start event does not fire in each worker
process.

We know that the Session_Start event works because if we open a new
instance of IE while the user has the cookie, theie settings are
loaded and they are able to use the application. This was working
fine for years with IIS 5 and works with IIS 6 and only one worker
process.

NOTE: We DO NOT need to share session information across worker
processes as I know this will not work and is unnecessary since
settings "should" be loaded for each session in each process
separately using the Session_Start event.

Any ideas?

Thanks

Re: IIS 6 Session_Start Inconsistency??? by Rob

Rob
Tue Mar 02 17:05:05 CST 2004


This is the exact same problem that we are having at all our clients. I
hope the MS IIS specialists carefully read this post.
Rob


"John Z." <johnibsi@yahoo.com> wrote in message
news:da7ed2cd.0403021131.20650937@posting.google.com...
> Setup:
>
> - global.asa
> - Contains Session_Start event which checks to see if the user
> has a cookie...if so, connect to the database and load their
> settings into Session from the database.
>
> - login.asp
> - Writes a cookie and loads user settings into Session from the
> database. (They will not go to login.asp each visit to the site.
> After they are authenticated the cookie will prevent forcing login for
> 24 hrs.)
>
> The problem we are having is that after the user has logged in and has
> a valid cookie, an exception may trigger the recycling of a worker
> process causing them to recieve a new session. At this point, it
> appears that the Session_Start event is not firing because the cookie
> is available and the user settings are not being loaded into Session.
> It is as if the Session_Start event does not fire in each worker
> process.
>
> We know that the Session_Start event works because if we open a new
> instance of IE while the user has the cookie, theie settings are
> loaded and they are able to use the application. This was working
> fine for years with IIS 5 and works with IIS 6 and only one worker
> process.
>
> NOTE: We DO NOT need to share session information across worker
> processes as I know this will not work and is unnecessary since
> settings "should" be loaded for each session in each process
> separately using the Session_Start event.
>
> Any ideas?
>
> Thanks



Re: IIS 6 Session_Start Inconsistency??? by Chris

Chris
Tue Mar 02 17:28:39 CST 2004

After installed Windows 2003 a few months ago and
migrating our web application to IIS 6, we began having a
very similar issue. I have a custom IIS web application
that is trying to run off of our new Windows 2003
server. My users log into our web application and
randomly get prompted numerous times throughout their
session. This application ran perfectly fine on our old
IIS 5 W2K advanced server. Nothing has changed with the
code...the only changes are the fact that we are now
working off of IIS 6. I would really like to see
something happen with this issue, because i don't know
how long i can live with this.....



>-----Original Message-----
>
>This is the exact same problem that we are having at all
our clients. I
>hope the MS IIS specialists carefully read this post.
>Rob
>
>
>"John Z." <johnibsi@yahoo.com> wrote in message
>news:da7ed2cd.0403021131.20650937@posting.google.com...
>> Setup:
>>
>> - global.asa
>> - Contains Session_Start event which checks to
see if the user
>> has a cookie...if so, connect to the database and
load their
>> settings into Session from the database.
>>
>> - login.asp
>> - Writes a cookie and loads user settings into
Session from the
>> database. (They will not go to login.asp each visit to
the site.
>> After they are authenticated the cookie will prevent
forcing login for
>> 24 hrs.)
>>
>> The problem we are having is that after the user has
logged in and has
>> a valid cookie, an exception may trigger the recycling
of a worker
>> process causing them to recieve a new session. At
this point, it
>> appears that the Session_Start event is not firing
because the cookie
>> is available and the user settings are not being
loaded into Session.
>> It is as if the Session_Start event does not fire in
each worker
>> process.
>>
>> We know that the Session_Start event works because if
we open a new
>> instance of IE while the user has the cookie, theie
settings are
>> loaded and they are able to use the application. This
was working
>> fine for years with IIS 5 and works with IIS 6 and
only one worker
>> process.
>>
>> NOTE: We DO NOT need to share session information
across worker
>> processes as I know this will not work and is
unnecessary since
>> settings "should" be loaded for each session in each
process
>> separately using the Session_Start event.
>>
>> Any ideas?
>>
>> Thanks
>
>
>.
>

Re: IIS 6 Session_Start Inconsistency??? by Rob

Rob
Thu Mar 04 12:52:06 CST 2004

There has been no responses to John Z's post. Can anyone help? I really
want to upgrade all my clients to IIS 6.0, but this issue is a deal killer
and I don't know what to try next.
Rob



"Chris" <anonymous@discussions.microsoft.com> wrote in message
news:5b6d01c400ae$17e8d1a0$a501280a@phx.gbl...
> After installed Windows 2003 a few months ago and
> migrating our web application to IIS 6, we began having a
> very similar issue. I have a custom IIS web application
> that is trying to run off of our new Windows 2003
> server. My users log into our web application and
> randomly get prompted numerous times throughout their
> session. This application ran perfectly fine on our old
> IIS 5 W2K advanced server. Nothing has changed with the
> code...the only changes are the fact that we are now
> working off of IIS 6. I would really like to see
> something happen with this issue, because i don't know
> how long i can live with this.....
>
>
>
> >-----Original Message-----
> >
> >This is the exact same problem that we are having at all
> our clients. I
> >hope the MS IIS specialists carefully read this post.
> >Rob
> >
> >
> >"John Z." <johnibsi@yahoo.com> wrote in message
> >news:da7ed2cd.0403021131.20650937@posting.google.com...
> >> Setup:
> >>
> >> - global.asa
> >> - Contains Session_Start event which checks to
> see if the user
> >> has a cookie...if so, connect to the database and
> load their
> >> settings into Session from the database.
> >>
> >> - login.asp
> >> - Writes a cookie and loads user settings into
> Session from the
> >> database. (They will not go to login.asp each visit to
> the site.
> >> After they are authenticated the cookie will prevent
> forcing login for
> >> 24 hrs.)
> >>
> >> The problem we are having is that after the user has
> logged in and has
> >> a valid cookie, an exception may trigger the recycling
> of a worker
> >> process causing them to recieve a new session. At
> this point, it
> >> appears that the Session_Start event is not firing
> because the cookie
> >> is available and the user settings are not being
> loaded into Session.
> >> It is as if the Session_Start event does not fire in
> each worker
> >> process.
> >>
> >> We know that the Session_Start event works because if
> we open a new
> >> instance of IE while the user has the cookie, theie
> settings are
> >> loaded and they are able to use the application. This
> was working
> >> fine for years with IIS 5 and works with IIS 6 and
> only one worker
> >> process.
> >>
> >> NOTE: We DO NOT need to share session information
> across worker
> >> processes as I know this will not work and is
> unnecessary since
> >> settings "should" be loaded for each session in each
> process
> >> separately using the Session_Start event.
> >>
> >> Any ideas?
> >>
> >> Thanks
> >
> >
> >.
> >