Updated SessionCookie code a little bit more