Author: jonnolen | Posted on: 7/15/2009 8:55:24 PM | Views : 339

I am using asp.net membership on my site, and I have a question about cookies, and their use, etc.  What I am wanting to happen is after a user logs into the site, while still logged in and browser 1 open, they may open the same browser a 2nd time, and the browser see that the user is currently logged in. Once the user closes both browsers, if they re-open the browser again and navigate to the site, they are no longer logged in.
At the same time, I would like to retain the ability for "Remember Me" as well, if possible.  I am thinking that cookies is the best way to handle this, but how to do it?  Even with cookieless set to UseCookies, I still don't see a cookie created on the client, and without creating a persistant cookie, I can't get the 2nd browser window to log in, but I want the user to be logged out once they have closed both windows.

I have the following code in my page_load event and web.config:

Go to the complete details ...