Yealink Forums

Full Version: How to delete session on closing browser?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do I destroy Magento sessions when a user closes his/her browser in Magento?

I tried to close and reopen my browser and I remain logged in. It looks like Magento persists the login status for certain amount of time. I changed 'cookie lifetime' under configuration, but it does not work.

I could use session_set_cookie_params() in index.php, but I would like to know if I can fix it without touching code directly.
(01-01-2019 10:17 AM)Thomas131 Wrote: [ -> ]How do I destroy Magento sessions when a user closes his/her browser in Magento?

I tried to close and reopen my browser and I remain logged in. It looks like Magento persists the login status for certain amount of time. I changed 'cookie lifetime' under configuration, but it does not work.

I could use session_set_cookie_params() in index.php, but I would like to know if I can fix it without touching code directly.

Please post your question on the Magento forum.
Reference URL's