Checking for session on logon event