1

Closed

Immediate COOKIE installation

description

One of the problems with this code is that a visitor is not immediately given the guest account cookie. He must click on any intra-site link for this to happen. Is there a way to fix this?
 
Here's the code as it stands:
 
protected void Application_Start(Object sender, EventArgs e)
{Application["Title"] = "FBA";}
 
protected void Session_Start(Object sender, EventArgs e)
{Session["startValue"] = 0;}
 
protected void Application_AuthenticateRequest(Object sender, EventArgs e)
{
string cookieName = FormsAuthentication.FormsCookieName;
HttpCookie authCookie = Context.Request.Cookies[cookieName];
if (null == authCookie)
{FormsAuthentication.SetAuthCookie("guest", false);}
}
Closed Nov 20, 2007 at 6:49 PM by NiskyPTO

comments

NiskyPTO wrote Nov 20, 2007 at 6:49 PM

Solved with Rel 1.0

wrote Nov 20, 2007 at 6:49 PM

wrote Feb 13, 2013 at 5:51 PM

wrote May 15, 2013 at 11:46 PM