How to share the whole session with the web service
[WebMethod(EnableSession = true)]
public int SetCounter()
{
int counter;
if (Context.Session["Counter"] == null)
counter = 1;
else
counter = Convert.ToInt32(Context.Session["Counter"]) + 1;
Context.Session["Counter"] = counter;
return counter;
}
Contributed by:
Guest
Guest user is that user who have done some activity on website without login. Activity contains commenting on any article, uploading an image on website etc.
Resourse address on xpode.com
http://www.xpode.com/Print.aspx?Articleid=192
Click here to go on website
|