Date and time in cookie

Results 1 to 2 of 2

Thread: Date and time in cookie

  1. #1
    Join Date
    Dec 1969

    Default Date and time in cookie

    Date and time in asp cookie....not working!!! Please help!!<BR><BR>Response.Cookies("Voted").Expires = "Thu, 13 Jul 2000 05:00:00:GMT"<BR>

  2. #2
    Swami Guest

    Default RE: Date and time in cookie

    Are you using now() function to set the time? If you are in different time zone, this may not work. <BR>One more reason for not to work is, you could be trying to set it from a different domain. <BR>After Expires command, check the cookies with "alert(document.cookies);" command. <BR>Otherwise, try this delete cookie method at the client side...<BR>function DeleteCookie (name) {<BR>var exp = new Date();<BR>var cVal = ReadCookie(name);<BR>if (cVal != null)<BR>document.cookie = name + "=" + cVal + "; expires=" + exp.toGMTString();<BR>}<BR><BR>Best Luck,<BR>Swami<BR>

Posting Permissions

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