Re: [dancer-users] how to delete cookie
20 Jul
2017
20 Jul
'17
1:24 p.m.
Hi, I got a cookie from user’s request and retrieve the data and store in session, then I will need to delete it in client’ browser. How can I delete the cookie? Many thanks, Wendy -- The Wellcome Trust Sanger Institute is operated by Genome Research Limited, a charity registered in England with number 1021457 and a company registered in England with number 2742969, whose registered office is 215 Euston Road, London, NW1 2BE.
20 Jul
20 Jul
1:45 p.m.
New subject: how to delete cookie
On Thu, 20 Jul 2017 13:24:58 +0000 Wanjuan Yang wrote:
I got a cookie from user’s request and retrieve the data and store in session, then I will need to delete it in client’ browser.
How can I delete the cookie?
Just set the expiry to a negative value: cookie my_cookie => '', expires => '-1d';
3032
Age (days ago)
3032
Last active (days ago)
1 comments
2 participants
participants (2)
-
Andrew Beverley -
Wanjuan Yang