Home > Archive > ASP .NET > November 2007 > Session State
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Rob Thomson 2007-11-30, 7:16 pm |
| Hi
I have a web site, with 2 virtual directories under it. All share the same
app pool, and have session set to StateServer via the machine config level.
I want to manage state timeouts and do this via an HTTPModule which
registers an event handler for the session start. My problem is I get a
session start when I hit the root web site, then when I hit the virtual
directory, even though the timeout is set to 20 mins. The strange thing is
that i set items in httpcontext.curent.items and they get persisted between
calls. Indeed it is in hear that I set a have logged on flag, and that if i
get a session start I understand it as a session time out.
So can session objects persist between web site, and two sub virutal
folders. If the answer is yes which I believe it to be, any ideas what is
going wrong in the above scenario, and why I cant get the same session object
between calls
TIA
| |
| bruce barker 2007-11-30, 7:16 pm |
| with out of proc session managers, the app vdir is used as a key to the
session data so that two web sites will not share session. also there is
no session timeout event (like in proc).
-- bruce (sqlwork.com)
Rob Thomson wrote:
> Hi
> I have a web site, with 2 virtual directories under it. All share the same
> app pool, and have session set to StateServer via the machine config level.
> I want to manage state timeouts and do this via an HTTPModule which
> registers an event handler for the session start. My problem is I get a
> session start when I hit the root web site, then when I hit the virtual
> directory, even though the timeout is set to 20 mins. The strange thing is
> that i set items in httpcontext.curent.items and they get persisted between
> calls. Indeed it is in hear that I set a have logged on flag, and that if i
> get a session start I understand it as a session time out.
>
> So can session objects persist between web site, and two sub virutal
> folders. If the answer is yes which I believe it to be, any ideas what is
> going wrong in the above scenario, and why I cant get the same session object
> between calls
>
> TIA
|
|
|
|
|