how to create sessions for admin page and user page
how to create sessions for admin page and user page
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ankur JainPosted Aug 6, 2014, 8:50 AM
you can create session for any value for any pages weather its is for admin or user...if you are asking for only session variable there you can create sessions like this if you are asking for roles??
Create Session:
session["sessionvariablename"]= value;
Get Session Value:
Response.Write(Session["sessionvariablename"].ToString());