0

I am trying to delete a cookie by reseting it but it wont delete. What am i doing wrong

#!/usr/bin/python
import cgi
import Cookie
import os

def cookie_expiry_date(numdays):
    from datetime import date, timedelta
    new = date.today() + timedelta(days = numdays)
    return new.strftime("%a, %d-%b-%Y 23:59:59 GMT") 




print 'Set-Cookie: UserID=0; expires= '+cookie_expiry_date(-100);

print "Content-type: text/html\n"
print "woooo"
2
Contributors
1
Reply
4
Views
8 Years
Discussion Span
Last Post by ret801
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.