Re: share a session between two website




<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


.



Relevant Pages

  • Re: share a session between two website
    ... second site is able to access that cookie? ... Are you checking errstr() ... The effort to follow the posting guidelines is appreciated, ...
    (comp.lang.perl.misc)
  • Re: share a session between two website
    ... "CGI::Session stores the session identifer in a cookie. ... second site is able to access that cookie? ... I get this error msg when trying to call errstr ...
    (comp.lang.perl.misc)
  • Re: share a session between two website
    ... second site is able to access that cookie? ... He has been asked to follow the guidelines many, ...
    (comp.lang.perl.misc)
  • Re: share a session between two website
    ... second site is able to access that cookie? ... Are you checking errstr() ... He has been asked to follow the guidelines many, ...
    (comp.lang.perl.misc)