thanks josh,
but i dont want to store the session central on a different
process/machnie(Out of proc/SQL Server), but within the memory of the
web server (InProc mode). Is it possible to access the session objects
by c#. And is it even possible to delete/create a certain session
object on the web server by code?
Thanks,
bkohler
Josh Twist schrieb:
> You can share sessions between servers (in order to support web farms)
> either by using out-of-process session or SqlServer session:
[quoted text clipped - 5 lines]
> Josh
> http://www.thejoyofcode.com/
Josh Twist - 16 Feb 2006 14:16 GMT
Hi bkohler,
I have no idea why you'd want to do this so maybe I'm not understanding
you correctly. Is your requirement something like this fictional one?
Imagine you have a two servers. One is used for shopping and one used
for checkout so you redirect them to http://server2/checkout.aspx when
they're ready to make a purchase or two. You now need to copy across
the session state from server1 otherwise you have no idea what is in
the user's basket? So you need some mechanism for server2 to
copy/clone/steal/borrow the session from Server1?
If it is, I can't think of any obvious solutions without you
implementing your own session mechanism. Also, the domain is different
so the session cookie wouldn't be the same, otherwise I'd suggest using
out-of-proc as above.
I guess the next obvious question is, why do you need to do this?
Josh
http://www.thejoyofcode.com/
bkohler - 16 Feb 2006 15:27 GMT
josh,
thanks for the quick reply.
well my idea is to migrate the state of a 'web service instance' from
one machine to a remote machine(e.g. in a different network). a 'web
service instance' is a web service within a session, which has a
certain state. Therefore my idea was to migrate the web service
instance on a new machine. Therefore the session should be removed on
the old machine after migration. And afterwards the client should
communicate with the web service on the new macine. I know that the
cookie will be unvalid, but how can i handle it to reach the web
service instance with its state on the new machine?
Any ideas?
bkohler