| | |
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 |
Tag cloud for Python
ansi assignment avogadro backend beginner binary bluetooth character cmd code customdialog data decimals dictionary drive dynamic error examples excel exe file float format ftp function gnu graphics gui heads homework http ideas import input java leftmouse line linux list lists logging loop module mouse newb number numbers output parsing path pointer port prime program programming progressbar projects push py2exe pygame pyqt python random recursion recursive refresh schedule screensaverloopinactive script scrolledtext sqlite ssh statistics stdout string strings sudokusolver sum table terminal text thread threading time tkinter tlapse tricks tuple tutorial ubuntu unicode update urllib urllib2 variable wikipedia windows write wxpython xlib





