require "/var/www/perl/include.pl"; require "/var/www/perl/functions.pl"; #create or resume session CGI::Session->name($session_name); my $session = new CGI::Session; my $username = get_username_from_sid($session->id); if($username) { print $session->header(); print '
'; } else { print $session->header(); print "nope..."; }