Yealink Forums
How to delete session on closing browser? - Printable Version

+- Yealink Forums (http://forum.yealink.com/forum)
+-- Forum: Dect Phone Series (/forumdisplay.php?fid=6)
+--- Forum: W56P(Wireless) (/forumdisplay.php?fid=57)
+--- Thread: How to delete session on closing browser? (/showthread.php?tid=42355)



How to delete session on closing browser? - Thomas131 - 01-01-2019 10:17 AM

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.


RE: How to delete session on closing browser? - complex1 - 01-01-2019 12:46 PM

(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.