I want to test whether (client) cookies are enabled when a POST
request is made. I wanted to call a function like this.
def cookieTest():
web.setcookie('cookiesEnabled','OK')
val2 = web.cookies().get('cookiesEnabled')
web.setcookie('cookiesEnabled','',-1)
...
it writes (or attempts to write) a cookie, reads it back, and then
deletes it. it tests whether it read the correct value. However, using
code like this, I always get None for val2 despite cookies being
enabled. Why isn't this working and how can I make it work?
Thanks.
--
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/webpy?hl=en.