session bean getSessionVariables function changed, put session checking in try catch block