Re: share a session between two website
- From: "Matt Garrish" <matthew.garrish@xxxxxxxxxxxx>
- Date: Sat, 29 Apr 2006 12:11:15 -0400
<alexjaquet@xxxxxxxxx> wrote in message
news:1146323027.854901.269310@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
"CGI::Session stores the session identifer in a cookie. Are you sure
that the
second site is able to access that cookie? Are you checking errstr()
for
more info? "
The effort to follow the posting guidelines is appreciated, but it looks
like you're copying and pasting. Google groups does have a way to reply with
proper attribution which will make your life easier:
http://groups.google.com/support/bin/answer.py?answer=14213&topic=250
I get this error msg when trying to call errstr
local our $session = new CGI::Session( "driver:File",
$session_id, {Directory=>"$session_dir"} );
local our $username =$session->param("username");
print "Content-Type: text/html\n\n";
print "$username username\n";
local our $error = CGI::Session::errstr;
print "$error\n";
but I think you 're rigth when you said this is not accessible outside
the web app context (url is different)
They both appear to be subdomains, so you should be able to configure the
cookie so that it's available to both:
$cookie =
CGI::Cookie->new(-name=>$session->name, -value=>$session->id, -domain =>
'.no-ip.biz');
print $cgi->header(-cookie=>$cookie);
See the header() function in the CGI::Session documentation for more info.
Matt
.
- Follow-Ups:
- Re: share a session between two website
- From: A. Sinan Unur
- Re: share a session between two website
- References:
- share a session between two website
- From: alexjaquet
- Re: share a session between two website
- From: Matt Garrish
- Re: share a session between two website
- From: alexjaquet
- share a session between two website
- Prev by Date: Re: Can't locate "extract_file" via "Archive::Tar"
- Next by Date: Re: Using =~ to Include and Omit in same line
- Previous by thread: Re: share a session between two website
- Next by thread: Re: share a session between two website
- Index(es):
Relevant Pages
|