I am not sure if this is needed. SessionIDCookie will tell you that the session cookie is there, no?