Logout code..
-
Hi, everyone.. I just started learning C# web application not long ago.. I like to enquire that if the user wants to logout of the web page/site, what is the code for the logout command when i click on the logout button?? Sorry as my question is too simple for you guys.. But thanks for the help.. ;) Thanks
-
Hi, everyone.. I just started learning C# web application not long ago.. I like to enquire that if the user wants to logout of the web page/site, what is the code for the logout command when i click on the logout button?? Sorry as my question is too simple for you guys.. But thanks for the help.. ;) Thanks
That all depends on what your using to handle logins. There is no one way of authenticating, tracking, and giving roles to users of your site. How you do the logout depends ENTIRELY on how you designed your authentication package, how your tracking your user sessions, what you need to do when the user logs out, or the session times out. Without a LOT more detail about your security system, it's impossible for anyone to tell you how to code your logout. That is, other than dropping a button on a form and handling it's click event. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome