Re: [Cppcms-users] Cookies
Brought to you by:
artyom-beilis
|
From: Saikumar G. <sai...@gm...> - 2013-05-02 04:10:01
|
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 ?
|