Here's my answer:
sub cgiapp_init {
my ( $self, $id );
$self = shift;
$id = $self->query()->param( 'CGISESSID' );
$self->session_config(
CGI_SESSION_OPTIONS => [ "driver:File", $id,
{Directory=>'/tmp/fbm_sessions/giftsubs'} ],
SEND_COOKIE => 0, ); } Jason Jason Purdy wrote:
I'm trying to enter the 21st Century by moving from passing along a ton of hidden variables to just passing along a session ID and save/load the parameters from a server file.However, the docs are more geared towards using a cookie and don't elaborate on how to "pass the session ID in this case".Here's the relevant code from my cgiapp_init: $self->session_config(CGI_SESSION_OPTIONS => [ "driver:File", $self->query, {Directory=>'/tmp/fbm_sessions/giftsubs'} ],SEND_COOKIE => 0, ); Then in my first runmode, I have this: $template->param( 'session' => $self->session()->id(), 'year_options' => $self->get_year_options() ); In that template file, I do this:<input type="hidden" name="CGISESSID" value="<!-- TMPL_VAR NAME="session" -->" />Then in my second runmode, I call this: $session = $self->session();But this creates a new session. What am I missing? How do I pass along the CGISESSID? I woulda thought it would have done it automatically with digging through the query object in the config part of the cgiapp_init.Thanks, Jason --------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/suppressed/ http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2 To unsubscribe, e-mail: suppressed For additional commands, e-mail: suppressed
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.