Re: [Cppcms-users] Session and domain name scope
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2011-09-02 15:47:14
|
> From: Allan SIMON <all...@su...> > Subject: [Cppcms-users] Session and domain name scope > To: cpp...@li... > Date: Friday, September 2, 2011, 6:29 PM > Hello > > My problem is quite simple, > > the website I've build, can respond on several > > X.domain.ltd servername (in apache it's only a alias inside > the virtual > host), where X permit to know in which language > the interface will be (for SEO) > But after doing some test, I've discovered that session are > not kept > when I go from one subdomain to another, is this because > of the scope of the cookie used ? If it's intented, is > there a way to > change this? > > Thanks > > Regards, > > Allan > You should provide explicit cookies domain. See: http://art-blog.no-ip.info/wikipp/en/page/cppcms_1x_config#session.cookies.domain So cookies would be valid on sub-domains as well. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.sf.net/ CppDB - C++ SQL Connectivity: http://cppcms.sf.net/sql/cppdb/ > ------------------------------------------------------------------------------ > Special Offer -- Download ArcSight Logger for FREE! > Finally, a world-class log management solution at an even > better > price-free! And you'll get a free "Love Thy Logs" t-shirt > when you > download Logger. Secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsisghtdev2dev > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |