TheStriker
Programmer
Hello,
Using ASP 3.0
I have a text box that searches for the entry the user enters and I also have a checkbox next to the textbox that says 'Remember Me' that writes a cookie. The code:
and on the page that checks the cookies and redirects as necessary, the code is:
For some reason, this code doesn't seem to work. Am I missing something? Any help is greatly appreciated.
Using ASP 3.0
I have a text box that searches for the entry the user enters and I also have a checkbox next to the textbox that says 'Remember Me' that writes a cookie. The code:
Code:
<%
If (Request.Form("RememberMe") = True) Then
Response.Cookies("SiteCode")("SiteCode") = Request.Form("SiteCode")
Response.Cookies("SiteCode").Expires = #Jan 1, 2100#
Session("MM_Username") = Request.Cookies("SiteCode")
End If
%>
and on the page that checks the cookies and redirects as necessary, the code is:
Code:
<%
Response.Buffer = True
If (Request.Cookies("SiteCode")("SiteCode") <> "") Then
Response.Redirect("../Pages/SiteInformation.asp")
End If
%>
For some reason, this code doesn't seem to work. Am I missing something? Any help is greatly appreciated.