[Catalyst] IE cookie/session problems

Fernan Aguero fernan at iib.unsam.edu.ar
Mon Apr 2 18:01:40 GMT 2007


there were a couple of questions regarding issues with IE
that had to do with cookie/sessions.

I also experienced this, and tested one of the solutions
proposed (calling $c->reset_session_expires after a
succesful login). But this alone didn't fix it. 

After a while I noticed I had moved my site to another box,
and was running my webapp under another domain, as a virtual
host. After reading the cookies spec again, I noticed the

"Only hosts within the specified domain can set a cookie for
a domain ..."

So I revisited my cookie configuration and noticed that I
was only setting the cookie_name but not the domain. After
I added 'cookie_domain' to my cookie conf, things started to
work fine under IE.

For some reason the other browsers didn't care ... maybe IE
was doing the right thing this time?

BTW, I also added a 'cookie_expires: 0' to make it a session
cookie (not persistent), since I'm managing persistent data
through authentication//db storage anyway.

Hope this helps,


More information about the Catalyst mailing list