Cees:
That is odd, as it usually works out of the box without requiring any
configuration.
You're absolutely right. I was just trying too hard. After commenting out
session_config and having it work, I successfully added back in:
$self-session_config( DEFAULT_EXPIRY = '+15m');
As I
Seems like I have spent more time on C::A::P::Session than all the other
plugins combined--and I just can't get it to work. It is setting a session
in cgiapp_postrun after logging in for the first time (it is also setting
a cookie very nicely). This is evidenced by the line: 'logged_in: 1 in my
I'm using older versions, C::A::P::Session v. 0.07 and CGI::Session 3.95.
And I store the sessions in MySQL (connect using C::A::P::DBH), but the
following code may help you anyway:
# CGI::Application::Plugin::Session - configure the session
sub init_session {
my $self = shift;
Just started working with CGI::Application::Plugin::Session and am
confused about a few things:
1) I'm used to CGI::Session, where I have to assign a cookie name and the
deal with a session id generated by C::S and written into the cookie. How
is the session id and cookie name handled in
I've verified the two work together here by not using session_config.
To buy (dwindling) time, I'm still using inline HTML:
$html .= qq|bunch of HTML|;
return $html;
I'm guessing $self-header_props does not add anything to what's
being returned. How, where or when can, or should, I add headers
to
On Tue, 19 Oct 2004, Jonathan Mangin wrote:
$html .= qq|bunch of HTML|;
return $html;
I'm guessing $self-header_props does not add anything to what's
being returned. How, where or when can, or should, I add headers
to $html?
You guessed wrong. $self-header_props sets the HTTP headers
On Tue, 19 Oct 2004, Jonathan Mangin wrote:
$html .= qq|bunch of HTML|;
return $html;
I'm guessing $self-header_props does not add anything to what's
being returned. How, where or when can, or should, I add headers
to $html?
You guessed wrong. $self-header_props sets the HTTP headers which
will
Jonathan Mangin wrote:
It's just temporary while I work on other parts of this
upgrade. So my question becomes, why isn't a cookie being set
without $self-session_cookie()? I have:
sub run_mode {
my $session = $self-session;
$self-session_cookie();
...
}
This is just a guess, but if you're