473,405 Members | 2,154 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,405 software developers and data experts.

session across two WS

Hi all,

I have a scenario where the client calls Web Service WS1 and WS1 calls
Web Service WS2

I have methods M1 on WS1 and M2 on WS2 both with EnabledSession=True

assume M1 on WS1 does the following (in VB-like pseudocode):
If (new session) Then
Session("foo1") = "OLD1"
Else
Session("foo1") = "NEW1"
EndIf
call M2 on Web Service WS2

and assume M2 on WS2 does the following:
If (new session) Then
Session("foo2") = "OLD2"
Else
Session("foo2") = "NEW2"
EndIf

if I call M1 twice from a client, Session("foo1") will be "NEW1"

what about Session("foo2")? will it be "NEW2"? if not, how is it
possible to preserve session on Web Service WS2 across two calls to
WS1?

thanks a lot in advance,
-Gianluca

Nov 23 '05 #1
1 1239

<gi******@hotmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Hi all,

I have a scenario where the client calls Web Service WS1 and WS1 calls
Web Service WS2

I have methods M1 on WS1 and M2 on WS2 both with EnabledSession=True

assume M1 on WS1 does the following (in VB-like pseudocode):
If (new session) Then
Session("foo1") = "OLD1"
Else
Session("foo1") = "NEW1"
EndIf
call M2 on Web Service WS2

and assume M2 on WS2 does the following:
If (new session) Then
Session("foo2") = "OLD2"
Else
Session("foo2") = "NEW2"
EndIf

if I call M1 twice from a client, Session("foo1") will be "NEW1"

what about Session("foo2")? will it be "NEW2"? if not, how is it
possible to preserve session on Web Service WS2 across two calls to
WS1?

thanks a lot in advance,
-Gianluca


ASP.NET sessions are based on cookies. On first call the the caller receives
a cookie which it passes back to the web service on subsequent calls. The
web service associates the calls with the session based on the cookie.

So basically, if M1 maintains the cookie it receives from M2, and sends it
to M2 on subsequent calls, then it should work out ok.

Regards,
Sami
Nov 23 '05 #2

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

Similar topics

1
by: d.schulz81 | last post by:
Hi all, We have about 10 different domains that are linked very closely and we want to identify and keep track of every single user that surfs our websites by the use of sessions. The problem...
3
by: D E | last post by:
What are some good methods of letting a user's "identity" (?session?) be known across several webpages. For example, a user logs in, and several pages say "Welcome back KNOWN USER" if he...
9
by: Pack Fan | last post by:
I've noticed that session variables will persist on Mac IE even after all browser windows have been closed. One must quit the program to clear the session variables. This presents a security risk...
6
by: Nedu N | last post by:
Hi, I am trying to design a Home page for my applicatiion in which i want show the links for for some itms... I tried to put the following <td> <font face="Arial, Helvetica, sans-serif" ...
7
by: Doug | last post by:
An ASP.NET session cookie set on "www.mydomain.com" can not be accessed on "search.mydomain.com"; hence, a new session and cookie are being created on every sub-domain. This is occuring because...
9
by: McGeeky | last post by:
Is there a way to get a user control to remember its state across pages? I have a standard page layout I use with a header and footer as user controls. Each page uses the same layout by means of...
20
by: p175 | last post by:
Hi people, I have a stored procedure that creates many Global temporary session tables. Into each of these tables go the results of various processing using relational division all keyed and...
8
by: Michael Schwarz | last post by:
Hi, I have a problem where I have two requests (i.e. two different windows that are using the same session) that are accessing the session collection. The requests will need more time on the...
22
by: K. A. | last post by:
I have two servers at work, 'A' for testing and development, and server 'B' for production. On server A, I wrote a PHP test code to login users then direct them to a personalized page. This is...
9
by: Josh | last post by:
I run a Joomla website and am familiar with php in some but not all aspects. Currently I am trying to find some solutions related to session handling. Am I correct in saying that "login" is kept...
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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.