I am trying to write a web service in ASP.NET which enables an outside application to access Session Variables such as the users that is currently logged in.
I thought that a correct way to do so would be to pass a cookie with a SessionID to the web service (or the SessionID itself), and have the web service return parameters of the Session object.
However, after a prolonged search I could not find a way to access Session variables with just a SessionID. Is this true? If so, is there an alternative way for me to write a service that will access session variables?
Thank you,
Off-hand, if you’re using SQL session storage you could just query the session database by session id…
iirc, SessionItemShort is a varbinary while SessionItemLong is an image… if the session item is larger than a varbinary(7000) it’ll get stored in SessionItemLong instead.