home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / xampp / xampp-perl-addon-1.4.9-installer.exe / header.al < prev    next >
Encoding:
Text File  |  2003-09-17  |  726 b   |  29 lines

  1. # NOTE: Derived from blib\lib\CGI\Session.pm.
  2. # Changes made here will be lost when autosplit is run again.
  3. # See AutoSplit.pm.
  4. package CGI::Session;
  5.  
  6. #line 1214 "blib\lib\CGI\Session.pm (autosplit into blib\lib\auto\CGI\Session\header.al)"
  7. # header() - replacement for CGI::header() method
  8. sub header {
  9.     my $self = shift;
  10.  
  11.     my $cgi = $self->{_SESSION_OBJ};
  12.     unless ( defined $cgi ) {
  13.         require CGI;
  14.         $self->{_SESSION_OBJ} = CGI->new();
  15.         return $self->header();
  16.     }
  17.  
  18.     my $cookie = $cgi->cookie($self->name(), $self->id() );
  19.  
  20.     return $cgi->header(
  21.         -type   => 'text/html',
  22.         -cookie => $cookie,
  23.         @_
  24.     );
  25. }
  26.  
  27. # end of CGI::Session::header
  28. 1;
  29.