in reply to Re^2: always logged in with CGI::Session
in thread always logged in with CGI::Session

Sorry, I've been out of the office for the last week :-)

I'm only guessing here... but take a look at: session_config. Maybe you want to use that in your init_session routine, rather than using CGI::Session->name()?

Let me know if that changes anything - I'm quite curious (as I'll be needing something like this myself in a while!)

-bib

-- WARNING: You are logged into reality as root.
  • Comment on Re^3: always logged in with CGI::Session

Replies are listed 'Best First'.
Re^4: always logged in with CGI::Session
by boboson (Monk) on Apr 05, 2006 at 22:07 UTC
    I am not sure yet, haven't done to much testing. But it seems to work. I removed the name and the session header calls.
    sub init_session { # application object my $self = shift; my $name = shift; # change name from CGISESSID to shorter sid #CGI::Session->name($name); # init session object using CGI::Application::Plugin::Session my $session = $self->session; # send session to header #$session->header(); }
      Interesting. It might be worth asking the author of C::A::Plugin::Session about that.

      -Bib

      -- WARNING: You are logged into reality as root.