Here's the cookie code that isn't saving --
cookie = Cookie.Cookie()
cookie['username'] = u
cookie['url'] = url
cookie['username']['expires'] = 10000
cookie['url']['expires'] = 10000
cookie['username']['max-age'] = 10000
cookie['url']['max-age'] = 10000
cookie['username']['version'] = 1
cookie['url']['version'] = 1
cookie['username']['domain'] = "mysite.com"
cookie['url']['domain'] = "mysite.com"
cookie['username']['path'] = "/"
cookie['url']['path'] = "/"
I can do 'print cookie' after all the above code, but when i look in my cookies it isn't there... What's up?
Here's an excerpt from my error logs in apache (/usr/local/apache2/logs/error_log)
How can I fix this?
[Mon Oct 17 08:09:54 2005] [error] [client 164.116.x.x] /usr/local/lib/python2.4/Cookie.py:712: DeprecationWarning: Cookie/SmartCookie class is insecure; do not use it, referer: [Mon Oct 17 08:09:54 2005] [error] [client 164.116.x.x] DeprecationWarning), referer:
Thanks guys,
Khan
cookie = Cookie.Cookie()
cookie['username'] = u
cookie['url'] = url
cookie['username']['expires'] = 10000
cookie['url']['expires'] = 10000
cookie['username']['max-age'] = 10000
cookie['url']['max-age'] = 10000
cookie['username']['version'] = 1
cookie['url']['version'] = 1
cookie['username']['domain'] = "mysite.com"
cookie['url']['domain'] = "mysite.com"
cookie['username']['path'] = "/"
cookie['url']['path'] = "/"
I can do 'print cookie' after all the above code, but when i look in my cookies it isn't there... What's up?
Here's an excerpt from my error logs in apache (/usr/local/apache2/logs/error_log)
How can I fix this?
[Mon Oct 17 08:09:54 2005] [error] [client 164.116.x.x] /usr/local/lib/python2.4/Cookie.py:712: DeprecationWarning: Cookie/SmartCookie class is insecure; do not use it, referer: [Mon Oct 17 08:09:54 2005] [error] [client 164.116.x.x] DeprecationWarning), referer:
Thanks guys,
Khan