How to create sessions for admin page and user page
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Ankur JainRank #2,475 · 567 reputationPosted Aug 6, 2014, 4:50 AM EDT
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());