Logged In: NO

Isnt it easier to use a wrapper like tsclient to handle this issue