If My Website Frontend Customers once login (Not Backend Admin Users), they should not be logged out Automatically. If they manually logout Then only it should be logged out.

I want this because if any registered customer comes to my site and view any product or add to cart then I can send them emails.

Please suggest if it is Possible.

This is my Current setting
In Magento Admin enter image description here

In php.ini file enter image description here

magento version :

1 Answer 1


Go to System -> Configuration -> Web -> Session Cookie management and set it to the value you need in the correct store view or if you have only one, in the default config.

Also keep in mind this has to be the same or lower than session.gc_maxlifetime in your PHP config. 0 should give you an endless session.

  • I don't want customers to log out at any time until he logs out manually.
    – Lalji
    Aug 23, 2016 at 6:27
  • Thst is what 0 do.
    – mbalparda
    Aug 23, 2016 at 7:01
  • Thank you very Much for your help, One quick question, that it is only for magento frontend users i.e. customers not admins, Right?
    – Lalji
    Aug 23, 2016 at 7:11
  • Yes. Remember to mark the answer as accepted if it helped you.
    – mbalparda
    Aug 23, 2016 at 7:12
  • Hello mbalparda, Its not working, I am getting logged out automatically. Can you please advice?
    – Lalji
    Aug 23, 2016 at 12:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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