validate session token if logged in, send to login place if there is an authentication exception
add tests
Merge pull request #949 from jay-hodgson/validate-session-token

Validate session token