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.sess ionid%> 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 2904
"grw" <no**@none.co m> wrote in message
news:u8******** ******@TK2MSFTN GP11.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.sess ionid%> 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******** ******@TK2MSFTN GP10.phx.gbl... "grw" <no**@none.co m> wrote in message news:u8******** ******@TK2MSFTN GP11.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.sess ionid%> 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.co m> wrote in message
news:Op******** *****@TK2MSFTNG P09.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.co m> wrote in message
news:u8******** ******@TK2MSFTN GP11.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.sess ionid%> 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.co m> wrote in message
news:u8******** ******@TK2MSFTN GP11.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.sess ionid%> 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.co m> wrote in message
news:u8******** ******@TK2MSFTN GP11.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.sess ionid%> 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******** ********@TK2MSF TNGP09.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.co m> wrote in message news:u8******** ******@TK2MSFTN GP11.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.sess ionid%> 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*******@THIS adOpenStatic.co m> wrote in message
news:Oc******** ******@TK2MSFTN GP12.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.co m> wrote in message news:u8******** ******@TK2MSFTN GP11.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.sess ionid%> 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*******@THIS adOpenStatic.co mwrote in message
news:Oc******** ******@TK2MSFTN GP12.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.comw rote in message
news:u8******** ******@TK2MSFTN GP11.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.sess ionid%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 working well for a couple of days. But,
after a while everytime I reload the shoppingbasket I see different products
which I've never added. So it seems like I'm seeing the basket of another
customer.
As it seemed IIS was 'sharing' sessions...
|
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!!!
Our development server started life as an NT4 machine and has been simply
upgraded from one operating system to the next, it is now a cross, NT4
Server, Win2000 Server, Win2003 server. All development sites work fine and
under heavy stress. ...
|
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 is set for 60 minutes. I will
get timed out in iis6 in less than 5 minutes. Are there any other
settings that can be changed to stop this from happening
|
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, the app never loses its session
state (which is how I manage the login state for the app).
| |
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 at
http://www.lamartin.com/dotnet/sessiontestset.aspx, were I set Session,
Application and Cache variables on the first page and then on the second
page view them as the second page is refreshed every five seconds. Before
10 refreshes, the...
|
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 project from
that other server, the session state variables are being set randomly.
For example, in the following code:
SetSelectionSessionState();...
|
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;
*------------------------------------------*
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
|
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 Explorer, I don't view the content of session Variables.
Instead there's not any problem if the application is on iis5
I have tried to set the flag on iis6 in the menu (websites->properties->service Run WWW service in IIS 5.0 isolation mode check box)...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |