Connecting Tech Pros Worldwide Help | Site Map

ASP Sessions and Web Gardens

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 19th, 2005, 08:59 AM
Andrew Durstewitz
Guest
 
Posts: n/a
Default ASP Sessions and Web Gardens

I'm working with a Windows 2003 IIS 6.0 Server with 2 2.8Ghz HT
processors (4 Proc to the server because of the HT).

My problem I that I have web garden turned on and can't get the sessions
to stay. I am new to IIS 6.0 so I don't know much about the whole web
garden thing. However, my entire site is written around ASP using
Sessions.

Any ideas on how to make this run on the new server?

Thanks,
Andrew J Durstewitz

DEVBuilder.org, http://www.DEVBuilder.org
ASP,ASP.NET,VB.NET,PHP,Java,and SQL Support, all in one place.

  #2  
Old July 19th, 2005, 09:00 AM
Ken Schaefer
Guest
 
Posts: n/a
Default Re: ASP Sessions and Web Gardens

You can't enable web-gardens and use instrinsic ASP Sessions.

When you enable a web-garden, you are allowing IIS to create multiple
w3wp.exe to service that application pool. Each w3wp.exe process has it's
own memory, threads etc. They certainly don't know about ASP sessions
created in other processes.

For a Classic ASP app, you'd need to roll your own session state mechanism
that worked with some other kind of storage (outside the w3wp.exe
processes).

For an ASP.Net application however, it's very east to switch between the
intrinsic session state systems (inproc, session state service, and SQL
Server). With an ASP.Net application, you shouldn't use inproc session state
with a web garden, but you can switch to either of the other two systems.
With the other two systems, session state is stored externally, so no matter
which w3wp.exe process answers the incoming request, the process can
recreate the session state from the external session store.

Cheers
Ken

"Andrew Durstewitz" <adurstewitz@moreheadassociates.com> wrote in message
news:3fd0ea60$0$201$75868355@news.frii.net...
: I'm working with a Windows 2003 IIS 6.0 Server with 2 2.8Ghz HT
: processors (4 Proc to the server because of the HT).
:
: My problem I that I have web garden turned on and can't get the sessions
: to stay. I am new to IIS 6.0 so I don't know much about the whole web
: garden thing. However, my entire site is written around ASP using
: Sessions.
:
: Any ideas on how to make this run on the new server?
:
: Thanks,
: Andrew J Durstewitz
:
: DEVBuilder.org, http://www.DEVBuilder.org
: ASP,ASP.NET,VB.NET,PHP,Java,and SQL Support, all in one place.


  #3  
Old July 19th, 2005, 09:00 AM
Laphan
Guest
 
Posts: n/a
Default Re: ASP Sessions and Web Gardens

Hi

Just picked up on this and I know it will probably sound a very dum
question, but what pratical uses would a web garden bring to a developer?

Thanks

Laphan


Ken Schaefer <kenREMOVE@THISadOpenStatic.com> wrote in message
news:eQi5Nq#uDHA.1992@TK2MSFTNGP09.phx.gbl...
You can't enable web-gardens and use instrinsic ASP Sessions.

When you enable a web-garden, you are allowing IIS to create multiple
w3wp.exe to service that application pool. Each w3wp.exe process has it's
own memory, threads etc. They certainly don't know about ASP sessions
created in other processes.

For a Classic ASP app, you'd need to roll your own session state mechanism
that worked with some other kind of storage (outside the w3wp.exe
processes).

For an ASP.Net application however, it's very east to switch between the
intrinsic session state systems (inproc, session state service, and SQL
Server). With an ASP.Net application, you shouldn't use inproc session state
with a web garden, but you can switch to either of the other two systems.
With the other two systems, session state is stored externally, so no matter
which w3wp.exe process answers the incoming request, the process can
recreate the session state from the external session store.

Cheers
Ken

"Andrew Durstewitz" <adurstewitz@moreheadassociates.com> wrote in message
news:3fd0ea60$0$201$75868355@news.frii.net...
: I'm working with a Windows 2003 IIS 6.0 Server with 2 2.8Ghz HT
: processors (4 Proc to the server because of the HT).
:
: My problem I that I have web garden turned on and can't get the sessions
: to stay. I am new to IIS 6.0 so I don't know much about the whole web
: garden thing. However, my entire site is written around ASP using
: Sessions.
:
: Any ideas on how to make this run on the new server?
:
: Thanks,
: Andrew J Durstewitz
:
: DEVBuilder.org, http://www.DEVBuilder.org
: ASP,ASP.NET,VB.NET,PHP,Java,and SQL Support, all in one place.




  #4  
Old July 19th, 2005, 09:00 AM
Ken Schaefer
Guest
 
Posts: n/a
Default Re: ASP Sessions and Web Gardens

You can have multiple processes serving a single web application pool.

On IIS v5, this required mulitple physical processsors, but in IIS6 it no
longer requires that. If one process, for whatever reason, is busy, it means
that another process is still available to service incoming requests.

Check the IIS6 Resource Kit for more information:
http://www.microsoft.com/downloads/d...2-333D9C148E69

Cheers
Ken


"Laphan" <news@DoNotEmailMe.co.uk> wrote in message
news:3fd2294f_3@127.0.0.1...
: Hi
:
: Just picked up on this and I know it will probably sound a very dum
: question, but what pratical uses would a web garden bring to a developer?
:
: Thanks
:
: Laphan
:
:
: Ken Schaefer <kenREMOVE@THISadOpenStatic.com> wrote in message
: news:eQi5Nq#uDHA.1992@TK2MSFTNGP09.phx.gbl...
: You can't enable web-gardens and use instrinsic ASP Sessions.
:
: When you enable a web-garden, you are allowing IIS to create multiple
: w3wp.exe to service that application pool. Each w3wp.exe process has it's
: own memory, threads etc. They certainly don't know about ASP sessions
: created in other processes.
:
: For a Classic ASP app, you'd need to roll your own session state mechanism
: that worked with some other kind of storage (outside the w3wp.exe
: processes).
:
: For an ASP.Net application however, it's very east to switch between the
: intrinsic session state systems (inproc, session state service, and SQL
: Server). With an ASP.Net application, you shouldn't use inproc session
state
: with a web garden, but you can switch to either of the other two systems.
: With the other two systems, session state is stored externally, so no
matter
: which w3wp.exe process answers the incoming request, the process can
: recreate the session state from the external session store.
:
: Cheers
: Ken
:
: "Andrew Durstewitz" <adurstewitz@moreheadassociates.com> wrote in message
: news:3fd0ea60$0$201$75868355@news.frii.net...
: : I'm working with a Windows 2003 IIS 6.0 Server with 2 2.8Ghz HT
: : processors (4 Proc to the server because of the HT).
: :
: : My problem I that I have web garden turned on and can't get the sessions
: : to stay. I am new to IIS 6.0 so I don't know much about the whole web
: : garden thing. However, my entire site is written around ASP using
: : Sessions.
: :
: : Any ideas on how to make this run on the new server?
: :
: : Thanks,
: : Andrew J Durstewitz
: :
: : DEVBuilder.org, http://www.DEVBuilder.org
: : ASP,ASP.NET,VB.NET,PHP,Java,and SQL Support, all in one place.
:
:
:
:


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.