| | |
deleting cookies
Please support our Python advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
•
•
Join Date: Nov 2008
Posts: 58
Reputation:
Solved Threads: 0
I am trying to delete a cookie by reseting it but it wont delete. What am i doing wrong
Python Syntax (Toggle Plain Text)
#!/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"
![]() |
Similar Threads
- Internet Explorer problems (Web Browsers)
- Netscape 7.1, Hotmail login problem - cookies 'disabled" (Windows NT / 2000 / XP)
- error on page hotmail (Web Browsers)
- trouble enabling cookies on IE & Mozilla (Windows NT / 2000 / XP)
- IE6 + NS6 being hijacked on yahoo sites ?? (Viruses, Spyware and other Nasties)
- Hotmail "error on page" problem (Web Browsers)
- IE won't load page with exe files (Web Browsers)
- IE Cache not deleting a URL (Web Browsers)
Other Threads in the Python Forum
- Previous Thread: Portable Python
- Next Thread: N processes in a ring, and sends a message M times around all the processes in the ri
| Thread Tools | Search this Thread |
address anydbm app beginner changecolor cipher class code conversion coordinates corners curves definedlines development dictionary dynamic events examples excel feet file float font format ftp function generator getvalue gui handling homework images import input ip java keycontrol line linux list lists loan loop maintain maze millimeter mouse mysqldb number numbers output parsing path permissions port prime programming projects py2exe pygame pymailer python queue random rational raw_input recursion recursive scrolledtext searchingfile shebang slicenotation split string strings table terminal text thread threading time tkinter tlapse tooltip tuple tutorial type ubuntu unicode url urllib urllib2 variable variables vigenere web windows wx.wizard wxpython xlwt





