If the remote object is on a different server, which I assume it is, then it
won't have access to the session state on the local server because all of
its code will run on the remote server. You might be able to get access to
the session on the server where the remote object lives.

Since HttpSessionState is neither serializable nor marshallbyref, you won't
be able to pass a reference across the boundaries.

If you need to be able to get access to specific items in session, you might
be able to write a custom sink to pass that information along with the call
and retrieve it on the server.

HTH,
Matt


-----Original Message-----
From: Marina
To: [EMAIL PROTECTED]
Sent: 4/25/02 8:32 AM
Subject: [DOTNET] Remoting and Session State

Hi,

When calling a remote object, is it possible for it to have access to
the Session state, if it's being called from something like an asp.net
page?

Thanks,
Marina

You can read messages from the DOTNET archive, unsubscribe from DOTNET,
or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to