Page 1 of 1

How to extract user Id from session

Posted: Mon Feb 09, 2009 1:59 pm
by frosty
Hi as a work around to the "Flash Cookie bug" i am passing thru the session in flash var.

My question is , once i have the session, how do i then exract the userId.

Re: How to extract user Id from session

Posted: Tue Feb 10, 2009 6:34 am
by mazhar
In ASP.NET you can save and retrieve values form session in following way

Code: Select all

//Set
Session["id"] = 123;

//Get
int id = AlwaysConvert.ToInt(Session["id"]);