Cookie name and expiration

ShoqulKutlu kursat.kutlu at gmail.com
Wed Nov 25 18:32:58 EST 2009


Hi,

I'm testing the Cookie module's MarshalCookie in mod_python on my
localhost environment. Everything looks ok and cookie set, get and
update operations work well. But I'm not sure about the cookie name
could be set by Cookie module. I mean the name of cookie file saved in
the Temporary Internet Files directory of Internet Explorer. Consider
that I run the script as http://localhost:8080/myScripts/myScript
When I look at the Temporary Internet Files dir, not like other
cookies came from normal websites, the cookie file was saved as
"myScript/" and the cookie address is shown as http://localhost:8080/myScripts/
I don't know this is normal behaviour of the browser or there is an
option to set the name of cookie file.

I mentioned the expiration in the subject but maybe it's not related
to expiration. For example if I run directly http://localhost:8080/myScripts/myScript2
after a day and look for the temporary internet directory again, I see
a second cookie named "myScript2/" and the first cookie (myScript/)
still exists there. But the first cookie seems no longer valid for
this domain although I set the expire range for 30 days.

Do I miss something about cookies concept and behaviour of browsers?
Could anyone please clarify?

Thanks and regards,
Kutlu



More information about the Python-list mailing list