> Some of these values look wrong. Your 'path' ought to be as the
> browser sees it, and your 'domain' ditto;
...
> Otherwise, I would recommend omitting those elements and allowing the
> defaults through.
So I commented out those lines and now have this:
#!/usr/bin/env python
import strin
On Thu, Aug 11, 2011 at 12:39 AM, Jack Hatterly
wrote:
> cookie['lastvisit'] = str(time.time())
> cookie['lastvisit']['expires'] = 30 * 24 * 60 * 60
> cookie['lastvisit']['path'] = '/var/www/html/my_site/'
> cookie['lastvisit']['comment'] = 'holds the last user\'s visit date'
>
Hi;
I'm trying to get this cookie code to work but it doesn't set the
properties I want set (expires, path, comment, etc.). When I delete the
cookie and run the script it duly creates a cookie. However, when I
reload the page none of the morsels have values associated with them. I
also do no