Wednesday, March 28, 2012

ATLAS with Session

Hi, got a question about how atlas handle the serverside session?After user login, I put the user information into a session.

then, in the UI, there is a client javascript event calling the backend web service, and the web service needs to access the user information from session,

but it seems HttpContext.Current.Session is always null value..

understand, ajax actually initiate a new connection via xml http to the server, but can they access the session variable?

Make sure you enable session state in your Web Service:

[WebMethod(true,EnableSession=true)]
publicstring GetMessages(string ChatId,string Username)
{

}

+++ Rick --

No comments:

Post a Comment