Mike, I don't know what's causing it to behaive this way... I'm running out of options! This is my code:
if (_IsAuthenticated)
{
FormsAuthenticationTicket _ticket = new FormsAuthenticationTicket(1,
this.userHandletbx.Text + "_" + DateTime.Now.ToString(),
DateTime.Now,
DateTime.Now.AddMinutes(30),
false, // Value of IsPersistent property
String.Empty,
FormsAuthentication.FormsCookiePath);
string \_encryptedTicket = FormsAuthentication.Encrypt(\_ticket);
HttpCookie \_authCookie = new HttpCookie(
FormsAuthentication.FormsCookieName,
\_encryptedTicket);
\_authCookie.Secure = false;
Response.Cookies.Add(\_authCookie);
FormsAuthentication.RedirectFromLoginPage(this.userHandletbx.Text, true);
}
And this is my web.config:
<authentication mode="Forms">
<forms loginUrl="Login.aspx"
name=".ASPXFORMSAUTH"
protection="All"
path="/"
timeout="40"
defaultUrl="Home.aspx"
enableCrossAppRedirects="false"
slidingExpiration="true">
</forms>
</authentication>
...and no matter where I stick
FormsAuthentication.SignOut()
it doesn't kill that darn cookie! Am I missing something? Is this a blonde moment I'm having? ;P Thanks for your help, by the way.
Green Grape