Cookie will not set

Results 1 to 3 of 3

Thread: Cookie will not set

  1. #1
    Ashy Guest

    Default Cookie will not set

    I have a Cookie which will work on a PWS but does not on a live Unix server. The cookie sets but it is empty! The code I am using is:<BR><BR>if p_password = real_password then<BR> &#039password is good<BR> Response.cookies("isLoggedInAs")("username")=p_use rname<BR> Response.cookies("isLoggedInAs")("URL")=p_url<BR> if p_save = "yes" then<BR> Response.cookies"isLoggedInAs").expires=#December3 1, 2001 00:00:00#<BR> end if<BR>

  2. #2
    303 Guest

    Default RE: Cookie will not set

    Had a similar problem myself. Making the first letter in the cookie name capital solved it for me. Like ("IsLoggedInAS"). I also shortend my name to be no more than 8 chars, but I don&#039t think thats nessesary.<BR><BR>The date format can also be a problem, however, u should then get an error informing you of this (I&#039m swedish and needs to convert between swedish and english dates, that might has something to do with it the fact that I get this error alot).<BR><BR>Good Luck !<BR>/303

  3. #3
    Ashy Guest

    Default RE: Cookie will not set

    Tried renaming cookie to Logged but the same problem still occurs. Even tried changing the # sign to quotes.

Posting Permissions

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