Re: [Cppcms-users] Cookies
Brought to you by:
artyom-beilis
|
From: Artyom B. <art...@ya...> - 2013-05-02 04:46:28
|
Don't reinvent the wheel - use sessions: http://cppcms.com/wikipp/en/page/cppcms_1x_sessions http://cppcms.com/wikipp/en/page/secure_programming Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Saikumar Gandapodi <sai...@gm...> >To: cpp...@li... >Sent: Thursday, May 2, 2013 7:09 AM >Subject: Re: [Cppcms-users] Cookies > > >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 > > > |