Session
-
I have asp.net page for user login, after login they can sign out before exit page, but if they not click logout, the machine will remember his/her ID? ................
-
I have asp.net page for user login, after login they can sign out before exit page, but if they not click logout, the machine will remember his/her ID? ................
At the LOGIN save the user id in session e.g Session["UserId"] = userid.Text and on button click of logout clear the Session value. What will happen is if he doesnt press the logout button the value stays stored otherwise it will be cleared. So u can use this value the next time he/she logs in. Hope I helped If only they could see what I see in my mind
-
At the LOGIN save the user id in session e.g Session["UserId"] = userid.Text and on button click of logout clear the Session value. What will happen is if he doesnt press the logout button the value stays stored otherwise it will be cleared. So u can use this value the next time he/she logs in. Hope I helped If only they could see what I see in my mind
I still can not get it, i mean if he does not click button logout, when other user open web as computer is will dispaly old user ................
-
I still can not get it, i mean if he does not click button logout, when other user open web as computer is will dispaly old user ................
The server will close automatically any session after 20 minutes of inaticity. you can modify this parameter (20 min) in your Web.config file. or by using the command "Session.timeout = 44;" (44 minutes for exp). To clear all Session variables => "Session.Clear();" Regards The novice.
-
The server will close automatically any session after 20 minutes of inaticity. you can modify this parameter (20 min) in your Web.config file. or by using the command "Session.timeout = 44;" (44 minutes for exp). To clear all Session variables => "Session.Clear();" Regards The novice.
Thank for for helped me. ................
-
Thank for for helped me. ................