SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict Corobori's Avatar
    Join Date
    Jun 2003
    Location
    Concepcion, Chile
    Posts
    395
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy Cookies headache

    I am having an issue on some PC where the system can't read a cookie

    I have this code:

    Code:
    test1.asp
    <%
    Response.Cookies("Codigox") = "Cookies written"
    Response.Cookies("Codigox").Expires = DateAdd("n",60,Now)
    response.Redirect("Test2.asp")
    %>
    
    test2.asp
    <%
    if Request.Cookies("Codigox") = "Cookies written" then
    	response.Write "Cookie written and read OK"
    else
    	response.Write "Cookie not read KO"
    end if
    
    
    %>
    <br><br><a href=Test1.asp>Click here to try again</a>
    On one PC running W98 IE 6.0 test2.asp shows "Cookie not read KO". I tried everything in the security and privacy options but no way to get it working. I also added the website in the allowed websites of the privacy section but it didn't change at all
    On the same machine it's working fine with Firefox.

    The URL: http://www.mejoresdatos.cl/test1.asp
    Jean-Luc
    Corobori WebDesign
    Working in the Concepcion area, Chile, since 1999
    Follow us on Twitter

  2. #2
    Afrika
    Join Date
    Jul 2004
    Location
    Nigeria
    Posts
    1,737
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try any of the formats below


    Response.Cookies("username").Expires = #December 25,2006#
    Response.Cookies("username").Expires = now() - 30


Bookmarks

Posting Permissions

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