Re: [Cppcms-users] Cookies
Brought to you by:
artyom-beilis
|
From: Artyom B. <art...@ya...> - 2013-04-29 06:26:07
|
It is most likely because you had already generated some output before setting the cookie. if you called response().out() - than the headers were generated and written to the output. So make sure you have no output requested. 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: Monday, April 29, 2013 7:08 AM >Subject: [Cppcms-users] Cookies > > >The cookies set in the cppcms app is not visible in the response header at >the client side. > > response().set_cookie(cppcms::http::cookie("COOKIE1","value")); > >The configuration is through fastcgi from lighttpd. > >fastcgi.server = ( > "/main" => (( > "bin-path" => "/home/dev/myapp/myapp -c /home/dev/myapp/config.js", > "socket" => "/tmp/hello-fcgi-socket", > "max-procs" => 1, > "check-local" => "disable" > )) >) > >Could it be because the lighttpd is not forwarding the cookies sent from the >cppcms app ? > >Am I doing something wrong with the settings ? > > > >------------------------------------------------------------------------------ >Try New Relic Now & We'll Send You this Cool Shirt >New Relic is the only SaaS-based application performance monitoring service >that delivers powerful full stack analytics. Optimize and monitor your >browser, app, & servers with just a few lines of code. Try New Relic >and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |