Pass session from profile to new page in asp.net
1495
02-Apr-2015
I
know how to pass session from login page to user's profile but how to pass the
same session from profile to new page
Anonymous User
02-Apr-2015By 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