boolian cookies become strings

Results 1 to 2 of 2

Thread: boolian cookies become strings

  1. #1
    Nick D Guest

    Default boolian cookies become strings

    for some reason <BR><BR>Response.Cookies(User)(U_level) = true<BR><BR>becomes a string value rather than a boolian value<BR><BR>so<BR>&#060;%<BR> If Request.Cookies(User)(U_level) = true then<BR> Response.Write("this works")<BR> End If<BR>%&#062;<BR>prints nothing but<BR>&#060;%<BR> If Request.Cookies(User)(U_level) = "true" then<BR> Response.Write("this works")<BR> End If<BR>%&#062;<BR>works<BR><BR>thanks in advance<BR><BR>Nick D

  2. #2
    Lurker Guest

    Default RE: boolian cookies become strings

    I believe that cookies only store strings. You could try storing -1 for true and 0 for false. It might help.

Posting Permissions

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