Cookie Question? Urgent!

Results 1 to 2 of 2

Thread: Cookie Question? Urgent!

  1. #1
    Join Date
    Dec 1969

    Default Cookie Question? Urgent!

    Why is this Cookie not setting up.<BR>I am setting up a Cookie like this and retrieving the information<BR>to check for that UserID and PassWord, but it is not setting up why is this.<BR><BR> Response.Cookies("Logged")("UserID") = ID<BR> Response.Cookies("Logged")("PassWord") = PWord<BR> Response.Cookies("Logged").Expires = Date()+30<BR><BR> If Request.Cookies("Logged") &#060;&#062; "" Then<BR> UserID = Request.Cookies("Logged")("UserID")<BR> PassWord = Request.Cookies("Logged")("PassWord") <BR> bAccess = LookInDB(UserId,Password)<BR> IF bAccess = True Then<BR> Response.Redirect("Default.asp") <BR> <BR> End If <BR><BR><BR>What am I doing wrong, Please advice me, Thanks for any help.<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Cookie Question? Urgent!

    Try checking for the cookie existence like this<BR><BR>If Request.Cookies("Logged")("UserID") &#060;&#062; "" Then<BR>UserID = Request.Cookies("Logged")("UserID")<BR>PassWord = Request.Cookies("Logged")("PassWord") <BR>bAccess = LookInDB(UserId,Password)<BR>IF bAccess = True Then<BR>Response.Redirect("Default.asp") <BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts