It is not clear question , but at my local machine code:
Process.GetCurrentProcess().SessionId
returns 2, but when i run this code on remot