Re: Is there a way to obtain a Session object other than the current one ?
From: Dale (daleDeletepres_at_msndotcomNot.Net)
Date: 08/06/04
- Next message: Dale: "Re: Call page method from user control in C#?"
- Previous message: Dale: "Re: How to add a value using comboBoxName.Items.Insert"
- In reply to: SFX: "Is there a way to obtain a Session object other than the current one ?"
- Next in thread: John Saunders: "Re: Is there a way to obtain a Session object other than the current one ?"
- Reply: John Saunders: "Re: Is there a way to obtain a Session object other than the current one ?"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 5 Aug 2004 21:54:41 -0500
You can create an application scope ArrayList with the Application_Start
method in the Global.asax. Then in the Session_Start add the session or
httpContext object to the ArrayList. Then the contexts of each current
request will be available to the server side code in the other sessions.
MS KB article 309018 might be a good starting point for you.
Dale Preston
MCAD, MCSE, MCDBA
"SFX" <noreply@softwarefx.com> wrote in message
news:e5jZpwzeEHA.3028@TK2MSFTNGP12.phx.gbl...
> If I have a session ID (string) can I somehow obtain the session object
> associated to that ID (it exist of course) ?
>
> I know this sounds wicked but I have a situation in which I have to make a
> request from the client (IE) but for security reasons I can not access the
> headers of the current request, so I can not make my new request contain
the
> same session ID cookie. So I was thinking that if I pass the session ID as
a
> parameter which I have retrieved in my aspx page, I could use this ID to
> retrieve the session.
>
> A better solution, would be to be able, from a Windows Form Control hosted
> inside IE to obtain (in a managed way) the headers for the current
request,
> but this issue doesn't belong in this forum , I just mention it as
> background information.
>
> --
> FP
> Software FX
>
>
- Next message: Dale: "Re: Call page method from user control in C#?"
- Previous message: Dale: "Re: How to add a value using comboBoxName.Items.Insert"
- In reply to: SFX: "Is there a way to obtain a Session object other than the current one ?"
- Next in thread: John Saunders: "Re: Is there a way to obtain a Session object other than the current one ?"
- Reply: John Saunders: "Re: Is there a way to obtain a Session object other than the current one ?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|