Subject: | Incorrect session ID for subdomain |
Date: | Thu, 20 Mar 2008 14:47:06 +0300 |
To: | bug-CGI-Session [...] rt.cpan.org |
From: | Тимур Кондратьев <mail [...] adtim.ru> |
Hello.
I have 2 different sites: site.com and sub.site.com both using CGI::Session
When I go to sub.site.com there are 2 session cookies are being sent,
first with Host: .site.com and second with Host: sub.site.com
The problem is CGI::Session use first cookie, which isn't valid for
sub.site.com, thus creating new session each time you hit sub.site.com
Changing $CGI::Session::NAME is not the option cause both sites run on
same server under mod_perl persistent environment.
Versions:
# $Id: Session.pm 353 2006-12-05 02:10:19Z markstos $
$CGI::Session::VERSION 4.20
This is perl, v5.8.8 built for i386-freebsd-64int
Thank you.