6

I have use Enterprice edition

I want to set the session for magento site like Gmail.

The user login, the session will set.

Once user click logout button the session will destory.

Other wise the the session is active.

If browser is closed, then again Open the browser the session should be active.

if i restart the system, then again Open the magento site the session should be active.

FYI: Also i have tried to set cookie session time out in admin panel. But its not working when the system is restart.

Thanks for help

  • 1
    You can set the cookie session time like you did, and move the sessions to the database instead of files. – Marius May 8 '14 at 12:30
  • @Marius could you guide how can i move that – VijayS91 May 8 '14 at 12:31
  • 1
    edit app/etc/local.xml and replace the line <session_save><![CDATA[files]]></session_save> with <session_save><![CDATA[db]]></session_save>. And clear the cache. – Marius May 8 '14 at 12:32
  • Let me know if it works. I haven't tested it. – Marius May 8 '14 at 12:37
  • @Marius It's Working for me. – VijayS91 May 8 '14 at 12:49
3

Based on the comments this moving the sessions to the database seams to solve the problem.

To move the sessions to the database edit app/etc/local.xml and replace

<session_save><![CDATA[files]]></session_save>

with

<session_save><![CDATA[db]]></session_save>
  • Can you plz give some clarity on these? I browse for it. But couldn't get it. How does the session alive just changing the session save location from files to database? In this way for a guest user added product on cart will remain same over ages? Also, does it apply for CE also? – Butterfly Jan 4 '16 at 13:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.