Help for this page

Select Code to Download


  1. or download this
    use CGI::Session;
    
    ...
    print "Content-type: text/html\n\n";
    print $user_A."<br />";
    print $user_B";
    
  2. or download this
    #first trip
    $self->session_config(
    ...
     
     $self->session->param('user' => 'Barney');
    
  3. or download this
    print $self->session->param('user');
    
  4. or download this
    CGI::Session->name('SESSION_ID1');
    my $session = new CGI::Session();
    ...
    CGI::Session->name('SESSION_ID2');
    my $session = new CGI::Session();
    my $user_B = $session->param('user');