Re: [Cppcms-users] Cookies
Brought to you by:
artyom-beilis
|
From: Petr J. <ele...@ex...> - 2013-05-03 03:14:02
|
I don't think setting max_age to 0 is actually meant to remove the cookie.
On 2/05/2013 2:09 PM, Saikumar Gandapodi wrote:
> Yet another issue I am facing when using cookie.
>
> I would like to store a user key in cookie when the user logs in and remove the
> cookie when the user logs out.
>
> After successful login the cookie is set
> app.response().set_cookie(cppcms::http::cookie("_key_", key));
>
> and during logout the cookie is set with max age 0
> cppcms::http::cookie thecookie("_key_", key);
> thecookie.max_age(0);
> app,response().set_cookie(thecookie);
>
> However the cookie is never removed from the browser after logout happens.
> Any ideas why this is happening.
>
> Also, I see that cppcms is using Max-Age to set the cookie expiry.
> How will this work for earlier IE versions ?
>
>
>
>
> ------------------------------------------------------------------------------
> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
> Get 100% visibility into your production application - at no cost.
> Code-level diagnostics for performance bottlenecks with <2% overhead
> Download for free and get started troubleshooting in minutes.
> http://p.sf.net/sfu/appdyn_d2d_ap1
> _______________________________________________
> Cppcms-users mailing list
> Cpp...@li...
> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>
--
Please use PGP to encrypt your email to ensure our privacy is respected.
|