Cookie Problem

Results 1 to 2 of 2

Thread: Cookie Problem

  1. #1
    Join Date
    Dec 1969

    Default Cookie Problem

    I&#039m an idiot.<BR><BR>I thought I was getting pretty good at ASP, but now I can&#039t get the following obvious piece of code to set a cookie. Even when this is at the very top of an empty html page (saved *.asp).<BR><BR>&#060;%@ LANGUAGE="VBSCRIPT" %&#062;<BR>&#060;%<BR> name = "Paul"<BR> <BR> Response.Cookies("name") = name<BR>%&#062;<BR><BR>My browser has no problem accepting cookies. I just don&#039t get one from this page. Nothing changes when I specify Response.Domain, .Expire, etc.

  2. #2
    Join Date
    Dec 1969

    Default RE: Cookie Problem

    Are you by any chance, response.redirect-ing immediately afterwards? or are you sending an empty response? there has to be some content sent to the browser before it&#039ll accept a cookie (it must be a valid 200 response)<BR><BR>j

Posting Permissions

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