🤔 Are you backing up your git repositories?

Nick Jones

Product-Focused CTO, Founder,
Software Engineer, Indie Hacker

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.

1
2
3
4
5
6
7
session_set_cookie_params(
$this->getCookie()->getLifetime(),
$this->getCookie()->getPath(),
$this->getCookie()->getDomain(),
$this->getCookie()->isSecure(),
$this->getCookie()->getHttponly()
);