Guys,
I want some help regarding maintaining session variables. I am writing Asp.net using C#.
Once the user logs in to the system using his login and password
I want to store his settings (line fullname, email id and other
privileges) in session variables so that I can access them
throwout the application.
How do I go about this?After a successful login you can assign items to session as such
Session("FullName") = strFullName;
'or
Session("FullName") = txtName.text; ' using a textbox
Session("Email") = strEmail;then to retrieve their values at any point...
txtName.text = Session("FullName");
In C# it is in the format:
Session["FullName"] = strFullName;
DJ
thanks guys.
0 comments:
Post a Comment