By default, session variables are stored in the web server’s
memory. You can receive session value from any page after creating. eg. from
the login page if you redirect to any page, the code can be as follows:
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
By default, session variables are stored in the web server’s memory. You can receive session value from any page after creating. eg. from the login page if you redirect to any page, the code can be as follows:
Reading session value from Default.aspx:
Also, you can use the Membership class to get variables from the membership profile
Session["MySessionDataVariable"] = Membership.GetUser().UserName