Zend Server with Magento: Session Problem

I’m trying out Zend Server (Community Edition), kind of cool by the way, on Ubuntu 9.0.4 and I was a getting a problem with Magento that reared its head as early as the second step in the installer. The locale that I was trying to select was not being applied, the page would just refresh. Turned out that the session itself wasn’t “sticking” – the session_id was constantly changing.

Anyway, long story short, tracked it down and it seemed to be a cookie problem. Haven’t worked out a configuration fix for it yet but, for anyone else having this problem, here’s a hack that will sort it out. All you need to it edit out the following in Mage_Core_Model_Session_Abstract_Varien at about line 80.

session_set_cookie_params(
    $this->getCookie()->getLifetime(),
    $this->getCookie()->getPath(),
    $this->getCookie()->getDomain(),
    $this->getCookie()->isSecure(),
    $this->getCookie()->getHttponly()
);
Share/Bookmark

No related posts.

Posted by Nick.

About Nick: As embarrassing as it may be, he gets irrationally excited about new projects and technologies. Refuses to wear shoes in the office. Technical Director at Meanbee.

View the original version of this post.

Leave a Reply

  • You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Tweets from @meanbee

Contact Meanbee

Send us your message