How can we store user information in session in silverlight, mean how to handle it ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As mentioned, Silverlight maintains application state, unlike a traditional ASP.NET application where each Request is semi-autonomous. In the latter case, you can use the Session to maintain some state information between those Requests.
In Silverlight, you can authenticate the user by means of a service call to the server, after which you can just use normal OO design to craft yourself an AuthenticatedUser or CurrentUser class, or something along those lines, to hold this information.
If you’re asking how to persist or retrieve information from your db or membership store, you obviously need to go through web services to communicate with your backend.