473,406 Members | 2,843 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

migration of web service session

hi,

if have the following scenario:
I have a winform client which communicates with a web service method
that supports session (EnableSession=true), so a cookie is created for
this client after the first call of this method.
Then the web service session should be migrated to a different machine
(running the same web service).
The next time the winform-client(using a cookiecontainer for collecting
the cookie for the session) should communicate with the session of the
web service which is now running on a different machine.
How can i realize this with C#?
Thanks, for any ideas!

bkohler

Feb 15 '06 #1
5 1902
You can share sessions between servers (in order to support web farms)
either by using out-of-process session or SqlServer session:

http://www.codeproject.com/aspnet/ASPNETSession.asp
http://msdn2.microsoft.com/en-us/library/ms178586.aspx (.NET 2 but I
think it works the same/similar)

Josh
http://www.thejoyofcode.com/

Feb 16 '06 #2
You can share sessions between servers (in order to support web farms)
either by using out-of-process session or SqlServer session:

http://www.codeproject.com/aspnet/ASPNETSession.asp
http://msdn2.microsoft.com/en-us/library/ms178586.aspx (.NET 2 but I
think it works the same/similar)

Josh
http://www.thejoyofcode.com/

Feb 16 '06 #3
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:

http://www.codeproject.com/aspnet/ASPNETSession.asp
http://msdn2.microsoft.com/en-us/library/ms178586.aspx (.NET 2 but I
think it works the same/similar)

Josh
http://www.thejoyofcode.com/


Feb 16 '06 #4
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/

Feb 16 '06 #5
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

Feb 16 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: susmita_ganguly | last post by:
Hi I am trying to upgrade from oracle 8i to oracle 9i on the same server ..I don't know much abt migration . Can anyone help me out. Thanks. Susmita
4
by: Abram Friesen | last post by:
Hi, I'm a developer for a software application vendor, and our application makes use of a customer-maintained Oracle 8i/9i database. We've had a customer request to support DB2 database, and I'm...
11
by: Glenn | last post by:
Hi I've been experimenting with managing state using the Session object. I've created a simple WS with a couple of methods, one which sets a string value, another that retrieves it. Each...
4
by: susmita_ganguly | last post by:
Hi I am trying to upgrade from oracle 8i to oracle 9i on the same server ..I don't know much abt migration . Can anyone help me out. Thanks. Susmita
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.