Re: Session Problem...

From: Kim Bach Petersen (msnews@kensho.dk)
Date: 12/25/02


From: "Kim Bach Petersen" <msnews@kensho.dk>
Date: Wed, 25 Dec 2002 14:47:25 +0100


It sound like you're trying to do a asp.old thing?

The way to go is to use Forms-Based Authentication, then asp.net handles it
all for you:

http://support.microsoft.com/default.aspx?scid=kb;en-us;Q308157
http://www.devhood.com/tutorials/tutorial_details.aspx?tutorial_id=433

If you insist on using the asp.old way, please beware that sessionid will be
reused, thus remeber to add:

Response.Cookies("ASP.NET_SessionId").Value = Nothing

in your logout procedure. It might be a good idea to place these in
Page_init as well:

Response.Cache.SetCacheability(HttpCacheability.NoCache)
Response.Cache.SetExpires(Now())

Kim :o)