How do I access the $session object from other subs?

In the CGI::Session docs it shows the following example


# now, if the user submitted his first name in a form, we can save it
    # in our session
    my $first_name  = $cgi->param("first_name");
    $session->param("first_name", $first_name);


The above is assuming that this is done within the same sub that the
$session object was created.

So when I am using CGI::Application and I am working in a run_mode sub how
can I best access the session object and update a key.

Simple example would be a counter

You have accessed this page 9 times.

Zack

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to