Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: session identification server side


Message #1 by "Sebastien Payette" <sebastien@s...> on Wed, 9 Oct 2002 16:23:46 +0100
Hi,

Concerning session identification, the property
HttpContext.Current.Session.SessionID, when called on client side, always
returns a constant value. I'm fine with that. It means that each browser
session is unique. Good.
But when the same client makes repetitive method calls to the same unique
Web Server for this SessionID value, the sessionId is not the same.... Not
what I imagined it would do...

To be more precise, I have a Web Service containing the following method:

[WebMethod(EnabledSession=true)]
public string getSessionID()
{
    return HttpContext.Current.Session.SessionID;
}

Subsequent calls to this method from the same client browser returns
different values every time for SessionId. I don't understood why. It is my
understanding that session identification is dealt with on the server side,
and there is a unique identifier for each client browser session. What I
want to do is identify a client session on server side... At the moment,
SessionId on client side is a constant value, but asking for it with a
method call to the server yields a different value every time
(F5 - Refresh). Any ideas? Cheers to all!


  Return to Index