Home All Groups Group Topic Archive Search About

Re: Session inconsistencies IIS6



Author
8 Sep 2006 9:31 PM
zee
Hi there, the last post states that the problem was solved, i was hoping
that it had more info as to what he/she did to solve the problem.

i read the suggestions on the web garden, i launched my IIS and saw
that the web gardens options are there when you look at the properties
of the application pool.

Would a good solution to the ASP sessions loosing data be, to

create a new application pool,
enable the recycle worker process at the following times and select 1
am or something.
uncheck shutdown workerprocess (would you recomend this?)
set the maximum number of worker processes to 1. (or can you switch of
this featuer some other way?)


The reason why i ask is because we just asked 10 of our clients to get
new servers and they all upgraded to server 2003 :)

the application is an ASP application, that relies heavily on session
variables...

any help would be appreciated, thank you.,.




grw wrote:
Show quote
> *Solved as a result thanks Ken.
>
> "Ken Schaefer" <kenREM***@THISadOpenStatic.com> wrote in message
> news:OcaFYt9FEHA.1840@TK2MSFTNGP12.phx.gbl...
> > Ask your hosting company if they are using a web garden for the
> application
> > pool that your website is in. If the app pool is served by multiple
> worker
> > processes (i.e. a web garden), then you will experience the
> symptoms you
> are
> > seeing. This is because each worker process has it's own memory,
> and ASP
> > sessions are stored in-memory. So, the first request creates a new
> session.
> > The second request gets served (50% of the time) by the second
> worker
> > process, that doesn't know anything about the first session, and
> starts
> > another one.
> >
> > Cheers
> > Ken
> >
> > "grw" <n***@none.com> wrote in message
> > news:u8vKJK8FEHA.1228@TK2MSFTNGP11.phx.gbl...
> > : Im trying to find why my hosted server won't maintain session
> state.
> > : Its not a web farm (not load balanced), its all the same server
> > :
> > : An application requires a session to be set and then recalled
> (like you
> do
> > : :)
> > :
> > : However, since the server software was upgraded from IIS 5 to 6,
> the
> > working
> > : code no longer works.
> > : (ie - login with session variables but get logged out immediately
> the
> page
> > : changes)
> > :
> > : Using simple code like <%=session.sessionid%> on the IIS6 server,
> and
> > : refreshing the page shows a new ID most times - it should be the
> same
> id??
> > : Testing on the old server (IIS5) would keep the same session id.
> > :
> > : Where do I start looking and what pertinent questions do I need
> to ask
> my
> > : host?
> > :
> > : TIA!
> > :
> > :
> > :
> >
> > *



--
zee
------------------------------------------------------------------------
Posted via http://www.webservertalk.com
------------------------------------------------------------------------
View this thread: http://www.webservertalk.com/message169045.html

AddThis Social Bookmark Button