How come virtually every web site I go to is allowed to place cookies on my PC, but MY damn web site doesn't
If I use the following code:
then my authentiation fails, and I get sent back to the login page.VB Code:
If ValidateLogin(txtUsername.Text, txtPassword.Text) Then objTicket = New FormsAuthenticationTicket(txtUsername.Text, False, 5) objCookie = New HttpCookie(".ASPXAUTH") objCookie.Value = FormsAuthentication.Encrypt(objTicket) Response.Cookies.Add(objCookie) strReturnURL = Request.Params("ReturnURL") If strReturnURL Is Nothing Then Response.Redirect("Main.aspx") Else Response.Redirect(strReturnURL) End If Else
There is a fix though!
Wooohooooo...
or is it???
To get round this you need to go to Tools--->Options--->Privicy Tab, and set this to LOW. Medium is default, and VBF works fine, so why doesn't my web site work?
Does anyone else have this problem?
Just for reference, my config auth code is:
This works when TESTING...it ONLY fails when you have Privicy > LOW AND the web site is live, and you go to it via:Code:<authentication mode="Forms"> <forms loginUrl="login.aspx" protection="All" slidingExpiration="true"/> </authentication> <authorization> <deny users="?"/> </authorization>
http://www.Woof.com
or what ever ya web address is.
To me, this seems like a bloody silly thing to have to do.
What does anyone else think?
Woof





Reply With Quote
