<%

include("util/constants.jag");
var log = new Log();


function authenticate(){

 if(session.get('user') == null){
            throw 'InvalidLogin';
       }
 if(session.get('user') != request.getParameter("currentLoggedUser")){
             throw 'InvalidUserInTheSession';
        }
}

authenticate();

%>
