Re: getting Session ID in WebBrowser control in C#

From: Igor Tandetnik (itandetnik_at_mvps.org)
Date: 04/28/04


Date: Tue, 27 Apr 2004 20:45:00 -0400


"Mike Z" <anonymous@discussions.microsoft.com> wrote in message
news:49927EE4-3FB3-47A7-8FFF-3BEB97B55275@microsoft.com
> Hi! I'd like to get the session id of my application so I can log the
> user off when the winform is closed. So far, I have not been able to
> figure it out. Please let me know if you came across.

The session ID is stored in a session cookie somewhere, so you can read
it with InternetGetCookie. The name of the cookie is determined by the
server application, so you should consult your server-side developers.

-- 
With best wishes,
    Igor Tandetnik
"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken


Relevant Pages

  • Re: Reality Check: Session Hijacking
    ... The user is always challenged when he starts to use a secure app, ... And NOT from the session. ... rest of the http response, so he also has the required post data. ... > exposes his session cookie over unencrypted http. ...
    (comp.lang.php)
  • Re: Where is SID?
    ... > and SID echoes as an empty string. ... server, and you'll see the session cookie being set, ... an appropriate session cookie. ...
    (comp.lang.php)
  • Re: Automated testing of cgi / perl
    ... ID in a session cookie. ... The regression testing tool in Unix is expect which is command-line only. ... Said connection can input information into fields, even store cookies for session ID between pages. ...
    (comp.lang.perl.misc)
  • Re: URGENT ssl/cookie problem
    ... > we get two copies of our shopping cart session cookie generated - one under ... > How do I delete both session cookies from inside one url? ... between http and https pages of *same domain*. ...
    (comp.lang.php)
  • Re: AJAX UpdatePanel not resetting IIS Session
    ... XMLHTTPRequest will send the session cookie, but on response it does not read and update the browser's session cookie, so after 20 mins the session cookie times out and is no longer sent to ... you can switch to cookieless sessions or update the browser cookie using a server request via an img or iframe. ... Thus, if the default IIS Session Timeout of 20 minutes is used, our logged-in users are always receving Session timeout in 20 minutes, regardless of what UpdatePanel activity is happening on the .aspx page. ...
    (microsoft.public.dotnet.framework.aspnet)