I want to store a value in session and to remove it on browser close. How can I do this?

  • I found this tutorial and it is working fine but still finding a way to remove my session value on browser close. xpertdeveloper.com/2013/05/…
    – Adnan
    May 30 '14 at 11:16

You can set the cookie lifetime via the admin section to "0". This should mean that the cookie will expire on browser close.

  • Will it effect on the front end cookies?
    – Adnan
    Aug 4 '14 at 8:56
  • @Adnan yes it should do. Aug 4 '14 at 9:02

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.