Re: Is there a way to obtain a Session object other than the current one ?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Dale (daleDeletepres_at_msndotcomNot.Net)
Date: 08/06/04


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
>
>



Relevant Pages

  • Re: User control remember state across pages without session
    ... Its a shame Microsoft don't extend viewstate beyond a single page because it ... An HTTP Request is received by the web server. ... It sends a Response to the client. ... > Request for a Page comes from any client, the Session Collection has a new ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: IIS bug-Concurrent request lock before IHttpModule.AcquireRequ
    ... into the session object. ... You can not have 2 simultaneous request for the same session. ... public partial class slow: System.Web.UI.Page ... public override void ProcessRequest ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: IIS bug-Concurrent request lock before IHttpModule.AcquireRequ
    ... shutDownMessage, ... IHttpModule stores the Hashtable of session objects in a private member ... You can not have 2 simultaneous request for the same ... protected void Page_Load(object sender, EventArgs ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Multiple instances of app under IIs and global com object - is it a problem?
    ... If IIS has, say, a pool of 25 threads, and your ASP Sessions do not exhibit ... objects) then you may not be looking at the same data when your next request ... This is why Session-level variables were provided -- in the Session ... this multiplicity of Module-level data means that you cannot ...
    (microsoft.public.vb.general.discussion)
  • Re: Multiple instances of app under IIs and global com object - is it a problem?
    ... If IIS has, say, a pool of 25 threads, and your ASP Sessions do not exhibit ... objects) then you may not be looking at the same data when your next request ... This is why Session-level variables were provided -- in the Session ... this multiplicity of Module-level data means that you cannot ...
    (microsoft.public.inetserver.iis)