View Single Post
  #2 (permalink)  
Old February 3rd, 2006, 07:06 PM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Since you're using a multi valued cookie (with Keys) I think you need to check the entire cookie first before you check one of its keys:

If Request.Cookies("Cookie1") IsNot Nothing Then
  If Request.Cookies("Cookie1")("cookie12") = "" Then
        Response.Redirect("login.aspx?Stat=FAIL")
  End If
End If

You may need to repeat the same check for the Cookie12 check....

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Reply With Quote