Cookies and logging out

andycharger

Well-known member
Joined
Apr 2, 2003
Messages
152
I need tostore the fact that im a) logged in and b) my user id when I log in so when i go between pages in my ASP.NET application, it knows who I am.
What is the best way to do this? Is it with cookies?
If so, how can I kill the cookie when my users shut their browser window?
Also, does anyone have any examples how they do website security like this.

Andy
 
Best thing is have a look at ASP.Net authentication, plenty examples in the MSDN library and on microsofts website.

Forms authentication pretty much does what you describe.
 
Back
Top