Thank you samtregar
1. Is the cookie being sent back to the server by the client?
Yes it is.
2. Is the session setup code in your super class running?
Here's the entire Super class. I don't believe there could be anything in another module that would be overwriting it (there's nothing that resets the session cookie--it's all done in Super):
package Super;
use warnings;
use strict;
use base 'CGI::Application';
use CGI::Application::Plugin::Redirect;
use CGI::Application::Plugin::Session;
use HTML::Template;
sub cgiapp_init {
my $self = shift;
(my $http_host = $ENV{'HTTP_HOST'}) =~ s/(www.)([a-zA-Z0-9\-\.]+)/
+$2/;
#--- Sessions & Cookies
$self->session_config(
COOKIE_PARAMS => { -name => 'MY_SESSID',
-expires => '+8h',
-path => '/',
-domain => ".".$http_hos
+t,
},
SEND_COOKIE => 1,
);
}
1;
—Brad "The important work of moving the world forward does not wait to be done by perfect men." George Eliot
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|