session id detection

  • Thread starter Thread starter Jim Reisz
  • Start date Start date
J

Jim Reisz

Guest
I have a windows service that binds to a port on the server and I have
several applications that will send messages for the service to process. Is
there a way that the service can detect the terminal service session that is
making the request without having to pass the session id in the request? I
will need to modify the service to work in terminal services, but would like
to avoid modifying 5 applications to pass the ts session id to the service.
The reason that I need the session id of the caller is so the service may
launch a process within their session.

TIA
 
Re: session id detection

"Jim Reisz" <jreisz@iw.net> schrieb im Newsbeitrag
news:2FF0AABF-9FAF-4F19-AAEF-887341814723@microsoft.com...
> I have a windows service that binds to a port on the server and I have
> several applications that will send messages for the service to process.
> Is there a way that the service can detect the terminal service session
> that is making the request without having to pass the session id in the
> request?


in case of std. ip cli/srv model you are out of luck, i guess. the
ip/udp/tcp headers don't carry any session related informations.

> I will need to modify the service to work in terminal services, but would
> like to avoid modifying 5 applications to pass the ts session id to the
> service. The reason that I need the session id of the caller is so the
> service may launch a process within their session.


i would suggest to extend the software, so you have a robust,
protocol-independent, TS-aware application framework.

-jolt
 
Back
Top