954,541 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

deleting cookies

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"
adam291086
Junior Poster in Training
61 posts since Nov 2008
Reputation Points: 10
Solved Threads: 0
 

what do you mean? this code does nothing except print

ret801
Junior Poster in Training
51 posts since Jan 2011
Reputation Points: 1
Solved Threads: 4
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You