log out using cookies.can it be done?
hi..
straight forward.how it is? can it be done? and another question from this coding
<%
if Request("username") = "" or (CustomersRS.eof and CustomersRS.bof) then
response.redirect "CheckOutFail.asp"
else
if Request.Form("RememberMe") = "check" then
Response.Cookies("username").Expires=Date + 365
Response.Cookies("password").Expires=Date + 365
Response.Cookies("rememberme").Expires=Date + 365
response.cookies("username")=Request("username")
response.cookies("pass")=Request("password")
response.cookies("rememberme")=Request("RememberMe ")
else
Response.Cookies("username").Expires="1/1/80"
Response.Cookies("password").Expires="1/1/80"
Response.Cookies("rememberme").Expires="1/1/80"
end if
strFn=cstr(CustomersRS("firstname"))
Response.Cookies("firstname").Expires=Date + 365
response.cookies("firstname")=ucase(left(strFn,1)) & right(strFn,len(strFn)-1)
response.cookies("Products")("CustomerID")=Custome rsRS("CustomerID")
response.redirect "index.asp"
end if
%>
how can i display in my welcome page the "username" that just log in
i wrote it this way but its not working
<%response.write(request.cookies ("username"))%>
thank you...
-aspnewbie (learn through try and error)
|