Help for this page

Select Code to Download


  1. or download this
    my $sid = $foo->cookie('main') || undef;
    my $session; # = undef
    if (is_logged_in()) {
      $session = CGI::Session->new(undef, $sid, {Directory => 'c:/apache/s
    +essions'});
    }
    
  2. or download this
    my $sid = $foo->cookie('main') || undef;
    my $session; # = undef
    if (defined $sid) {
      $session = CGI::Session->new(undef, $sid, {Directory => 'c:/apache/s
    +essions'});
    }