IE browser losing Magento session cookie - where is it created in code?

I’m running into a weird issue with my Magento store where Internet Explorer keeps dropping the session cookie for frontend users. This doesn’t seem to happen in other browsers like Chrome or Firefox, just IE.

The problem is really frustrating because customers can’t stay logged in or maintain their shopping cart contents when browsing around the site. I’ve been trying to debug this for a while now but I’m not sure where to look in the Magento codebase.

Can anyone point me to the specific files or functions where Magento actually creates and manages the frontend session cookies? I need to understand how the cookie handling works so I can figure out why IE is having trouble with it.

Any help would be much appreciated!

yeah, i’ve had a similar prob with IE too. make sure the cookie domain is set properly, like it’s a big deal in IE. try goin to the config in admin panel > web > session cookie settings and see if that helps!

Session cookies are managed within the Mage_Core_Model_Session_Abstract_Varien class, particularly in the start() method. It’s also advisable to inspect app/code/core/Mage/Core/Model/Session.php for the relevant cookie parameters. Internet Explorer tends to be more stringent with cookie paths and secure flags compared to its counterparts. I encountered a similar problem previously, where IE rejected cookies due to improper httpOnly settings amidst HTTP/HTTPS requests. Ensure that your local.xml reflects the correct session cookie settings, and verify that your site consistently employs the same protocol.

hmm, that’s interesting - what version of ie are you using? older versions handle cookies differently, especially with sameSite attributes. check your browser dev tools when the cookie gets dropped. any console errors showing up?