Help for this page

Select Code to Download


  1. or download this
    my $sid = $foo->cookie('main') || undef;
    my $session = new CGI::Session(undef, $sid, {Directory=>'c:/apache/ses
    +sions'});
    
  2. or download this
    if ($sid) {
        $session = new CGI::Session(undef, $sid, {Directory=>'c:/apache/se
    +ssions'});
    # a bunch of code that grabbed data from the session
    }