Added session cookie during login and logout