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! 9 2889
"grw" <no**@none.com> wrote in message
news:u8**************@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?
what does the URL you use to confirm this difference, look like? (so I mean,
does it look like http://servername etc)
TIA!
Im not sure what you mean 'confirm the difference'? could you clarify for
me?
The old server used exactly the same code - the only way I can test this is
on the new server / software (same hardware)
So yes - the URL is the same format as before (as the web hasnt changed) :
http// www. domain. com /test.asp for example
"Egbert Nierop (MVP for IIS)" <eg***********@nospam.com> wrote in message
news:uS**************@TK2MSFTNGP10.phx.gbl... "grw" <no**@none.com> wrote in message news:u8**************@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?
what does the URL you use to confirm this difference, look like? (so I
mean, does it look like http://servername etc)
TIA!
"grw" <no**@none.com> wrote in message
news:Op*************@TK2MSFTNGP09.phx.gbl... Im not sure what you mean 'confirm the difference'? could you clarify for me?
The old server used exactly the same code - the only way I can test this
is on the new server / software (same hardware) So yes - the URL is the same format as before (as the web hasnt changed) : http// www. domain. com /test.asp for example
That looks quite normal. Maybe, you got code that is tested on old ADO ,
but on IIS 6, ADO 2.8 is used, the exception leads to a 'loggedin' session
variable not to be set(and abandon to be called??). There is, any way, no
special new switch on IIS 6 for normal sessions.
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" <no**@none.com> wrote in message
news:u8**************@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!
:
:
:
The only people who can help you here will be the hosting company.
This is just an IIS setting problem.
"grw" <no**@none.com> wrote in message
news:u8**************@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!
What Ken suggested (Is Web Garden enabled) would be my first suggestion
Basically, session state is a blob of memory that is not explicitly shared
between any worker process. Thus, session state gets lost when you move
between processes, and things that trigger this include:
1. Worker process recycling via a variety of triggers. Common ones include
idle timeout (default 15 minutes) or periodic recycling (default 29 hours)
2. Web Garden -- new connection goes to a new worker process, cycling
through the max number of worker processes in the garden
3. Something crashes the worker process.
This is best addressed by moving session state out of the worker process.
For example, ASP.Net session state service does this for ASP.Net, and Egbert
has one for ASP as well.
--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"grw" <no**@none.com> wrote in message
news:u8**************@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!
"Egbert has one for ASP as well."
What does that look like? thanks for all the ideas!
"David Wang [Msft]" <so*****@online.microsoft.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl... What Ken suggested (Is Web Garden enabled) would be my first suggestion
Basically, session state is a blob of memory that is not explicitly shared between any worker process. Thus, session state gets lost when you move between processes, and things that trigger this include: 1. Worker process recycling via a variety of triggers. Common ones
include idle timeout (default 15 minutes) or periodic recycling (default 29 hours) 2. Web Garden -- new connection goes to a new worker process, cycling through the max number of worker processes in the garden 3. Something crashes the worker process.
This is best addressed by moving session state out of the worker process. For example, ASP.Net session state service does this for ASP.Net, and
Egbert has one for ASP as well.
-- //David IIS This posting is provided "AS IS" with no warranties, and confers no
rights. // "grw" <no**@none.com> wrote in message news:u8**************@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!
Solved as a result thanks Ken.
"Ken Schaefer" <ke*******@THISadOpenStatic.com> wrote in message
news:Oc**************@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" <no**@none.com> wrote in message news:u8**************@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! : : :
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:
*Solved as a result thanks Ken.
"Ken Schaefer" <ke*******@THISadOpenStatic.comwrote in message
news:Oc**************@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" <no**@none.comwrote in message
news:u8**************@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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: P. Glassel |
last post by:
I'm having problems getting session timeouts to change
programmaticlaly under IIS6.0. This is unchanged code
that ran as expected under IIS5.0.
Anyone else run into this problem?
Thx.
|
by: Ronald |
last post by:
Hi there!
I have a website partly written in ASP in where a shoppingbasket is used.
The products of the shoppingbasket are stored in the session-object. (We
use IIS6 on Windows 2003). This was...
|
by: Adam Short |
last post by:
I'm having all sorts of problems with Sessions, I've been using them for
years with out a hitch, all of a sudden the last 6 - 12 months since getting
our new Win2003 server it's all gone shakey!!!...
|
by: Ted Bogucki |
last post by:
I have an asp application running on both iis5 and iis6. (not .net) The
server ruhnning IIS5 has no problem running my application. IIS6 randomly
times out WEB users. The session timeout...
|
by: Jacob Anderson |
last post by:
Hello,
I have a web application running in two configurations:
1. On my local machine running in debug and release mode
2. On a shared, hosted, machine in release mode
On my local machine,...
|
by: William LaMartin |
last post by:
I have a problem, mentioned here before, of Session and Application
variables disappearing at one site but not at others or on my development
computer.
The problem is illustrated by an example...
|
by: yoshibebe |
last post by:
Hi, I have developed a project on my local machine. The session state
variables are working fine on my local machine. When I port it into a
another server called v-projects, and I try to run the...
|
by: Terry Strachan |
last post by:
Hi,
I have an asp.net webapp that works fine on my development machine,
win2k/iis5 however, when I move the site across to win2k3 / iis6 i get the
following error on postback of any page;
...
|
by: eraimondi |
last post by:
Hi guys.
This is my problem.
I have got an application asp on iis6.
In some pages I use Session Variables and when I explore them with Mozilla there is not any problem;but if I use Internet...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |