Immediate COOKIE installation


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 7:49 PM by NiskyPTO


NiskyPTO wrote Nov 20, 2007 at 7:49 PM

Solved with Rel 1.0

wrote Nov 20, 2007 at 7:49 PM

wrote Feb 13, 2013 at 6:51 PM

wrote May 16, 2013 at 12:46 AM