473,750 Members | 2,308 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1917
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
19993
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
3986
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 looking into the feasibility of migration. Our application runs on NT Server and, the DB2 database would be in some cases on a separate AIX machine, in other cases on an AS/400. There are two problems we are running into, both relating to our...
11
3656
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 method has the WebMethodAttribute.EnableSession set to true. When I run the test page the session is maintained. However, using a console application, in between setting the string value and attempting to
4
522
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
8997
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9568
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9389
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9256
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8257
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6079
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4881
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3320
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2794
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.