Last post Jan 11, 2007 07:54 AM by grajeshkreddy
Jan 06, 2007 11:13 AM|avrail|LINK
iam new in this i really need help
i want to creat a session gives me information about the user who using my page
like "after 2 min without doing any thing in my asp.net page he will signout and need to signin again"
i really dont know how to make this
so plz f there is any one can help me
Jan 11, 2007 07:54 AM|grajeshkreddy|LINK
Server will create a session if a client access the URL. In your case try to use this simple technique - store userId or UserName i session variables
If(login == success)
Session["USERID"] = sUserID;
In Page_Load method of every aspx page check this
if(Session["USERID"] == null )
Redirect user to Login page.
Hope this works.