Click here to Skip to main content
15,906,624 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to use session n silverlight?
Posted

Best approach for using Session in Silverlight is to create a collection & then use it as a Session variable.

public Dictionary<string, object> Session {get; set;}
.
.
.
Session["uname"] = "kunal";

if(Session["uname"] != null)
{
    string uname = Session["uname"].ToString();
}


Please vote it if it helped you.
 
Share this answer
 
v2
The big question is, why do you want to ?

http://www.dotnetspider.com/tutorials/Silverlight-Tutorial-316.aspx[^] tells you how to access session variables. Given that the silverlight control lives in the one page, that's all you should ever need to do.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900