#Get user ID and password ….. #Validate user…… #Of the user is validated { #create session #create the cookie $cookie = $query->cookie(CGISESSID => $session->id); #send the cookie to the browser print $query->header( -cookie=>$cookie ); #redirct the user to welcome page print $query -> redirect("http://localhost/cgi-bin/welcome.pl"); }else{ get out