0

I had stuck issue.I had created one cookie but my client needs this cookie should be deleted when the browser is closed.

I had tried many links on the google but not got solution.

Please Help Me.

Thanks

  • Did you try setting it's lifetime to 0? – Marius Jul 14 '14 at 13:52
  • @Marius i havent tried having lifetime 0.i will try now – Pradeep Sanku Jul 14 '14 at 14:01
  • @Marius it is working fine.Thanks.Can you Post your comment in the Answer please. – Pradeep Sanku Jul 14 '14 at 14:02
2

based on the comments...
The cookie lifetime should be set to 0. This means the cookie will expire at the end of the session.

  • It's not working when "Restore previous session" is enabled in browser. Could you please let us know how can we solve this? – Vish Oct 13 '18 at 6:01

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.