22 May 2017 Are you sure that you don't get any errors? Have you checked the web server error log? You call login_attempt() with two parameters ( $session and $cgi ) but in .