Added a check to see if session 'name' is set and removed error reporting.