removed session functions, as it's best left for user, and fixed 'exception' typo