473,405 Members | 2,349 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.

Problem with pages talking between two servers

Hi,
I have a problem. We have web applications on 2 seperate servers that need
to talk to each other. App 1 needs to pop open a second windos with App2 in
it where you choose a value and that is returned to App1. The problem is
that when we try to call App1 from App2 with a value say in it's address
string (page.aspx?id=xxx) we have no way of keeping our session variables in
App1 (To verify we still have the same user logged in to app1 as well as
other variables). We've worked around this by App1 looping while app2 is
running and then having app2 just write to a database and then have app1
keep checking the db for the value, but that is not nice. Any ideas?
Nov 18 '05 #1
5 708
Brent,

Although I've no idea of the scenario it sounds like you ought to just
expose the functionality of App2 via remoting to App1....

Tell us a bit more about what you're trying to do...

cheers,

g
"Brent" <b@b.com> wrote in message
news:10*************@corp.supernews.com...
Hi,
I have a problem. We have web applications on 2 seperate servers that need
to talk to each other. App 1 needs to pop open a second windos with App2 in it where you choose a value and that is returned to App1. The problem is
that when we try to call App1 from App2 with a value say in it's address
string (page.aspx?id=xxx) we have no way of keeping our session variables in App1 (To verify we still have the same user logged in to app1 as well as
other variables). We've worked around this by App1 looping while app2 is
running and then having app2 just write to a database and then have app1
keep checking the db for the value, but that is not nice. Any ideas?

Nov 18 '05 #2
Umm, I'll try to explain better. I need the second app to completely run on
the other server, because it is a mapping program that people will choose
locations on a map. I then need to pass the value of that location back to
my app without it losing it's session.

"Gary Hunt" <be*******@codequest.co.uk> wrote in message
news:Ob**************@TK2MSFTNGP12.phx.gbl...
Brent,

Although I've no idea of the scenario it sounds like you ought to just
expose the functionality of App2 via remoting to App1....

Tell us a bit more about what you're trying to do...

cheers,

g
"Brent" <b@b.com> wrote in message
news:10*************@corp.supernews.com...
Hi,
I have a problem. We have web applications on 2 seperate servers that need to talk to each other. App 1 needs to pop open a second windos with App2 in
it where you choose a value and that is returned to App1. The problem is
that when we try to call App1 from App2 with a value say in it's address
string (page.aspx?id=xxx) we have no way of keeping our session

variables in
App1 (To verify we still have the same user logged in to app1 as well as
other variables). We've worked around this by App1 looping while app2 is
running and then having app2 just write to a database and then have app1
keep checking the db for the value, but that is not nice. Any ideas?


Nov 18 '05 #3
Hmmm,

Ok - understand the issue now - can you not configure it like you would for
a webfarm with the session state being held in a SQL server DB - or does SQL
licensing rule that one out?

I guess the alternative would be to serialise the session and pass it either
on the URL or via a form post and have the "App2" understand a passed in
session from App1. It's gonna get more closely coupled than you'd like it I
guess.

Not much help I'm afraid,

cheers,

g

"Brent" <b@b.com> wrote in message
news:10*************@corp.supernews.com...
Umm, I'll try to explain better. I need the second app to completely run on the other server, because it is a mapping program that people will choose
locations on a map. I then need to pass the value of that location back to
my app without it losing it's session.

"Gary Hunt" <be*******@codequest.co.uk> wrote in message
news:Ob**************@TK2MSFTNGP12.phx.gbl...
Brent,

Although I've no idea of the scenario it sounds like you ought to just
expose the functionality of App2 via remoting to App1....

Tell us a bit more about what you're trying to do...

cheers,

g
"Brent" <b@b.com> wrote in message
news:10*************@corp.supernews.com...
Hi,
I have a problem. We have web applications on 2 seperate servers that need to talk to each other. App 1 needs to pop open a second windos with App2
in
it where you choose a value and that is returned to App1. The problem

is that when we try to call App1 from App2 with a value say in it's address string (page.aspx?id=xxx) we have no way of keeping our session

variables
in
App1 (To verify we still have the same user logged in to app1 as well as other variables). We've worked around this by App1 looping while app2 is running and then having app2 just write to a database and then have app1 keep checking the db for the value, but that is not nice. Any ideas?



Nov 18 '05 #4
OK, passing the serialized session sounds good to me. Can you point me at
some examples of how to do this exactly?
Thanks,

"Gary Hunt" <be*******@codequest.co.uk> wrote in message
news:e5**************@TK2MSFTNGP11.phx.gbl...
Hmmm,

Ok - understand the issue now - can you not configure it like you would for a webfarm with the session state being held in a SQL server DB - or does SQL licensing rule that one out?

I guess the alternative would be to serialise the session and pass it either on the URL or via a form post and have the "App2" understand a passed in
session from App1. It's gonna get more closely coupled than you'd like it I guess.

Not much help I'm afraid,

cheers,

g

"Brent" <b@b.com> wrote in message
news:10*************@corp.supernews.com...
Umm, I'll try to explain better. I need the second app to completely run on
the other server, because it is a mapping program that people will choose
locations on a map. I then need to pass the value of that location back to my app without it losing it's session.

"Gary Hunt" <be*******@codequest.co.uk> wrote in message
news:Ob**************@TK2MSFTNGP12.phx.gbl...
Brent,

Although I've no idea of the scenario it sounds like you ought to just
expose the functionality of App2 via remoting to App1....

Tell us a bit more about what you're trying to do...

cheers,

g
"Brent" <b@b.com> wrote in message
news:10*************@corp.supernews.com...
> Hi,
> I have a problem. We have web applications on 2 seperate servers
that need
> to talk to each other. App 1 needs to pop open a second windos with

App2 in
> it where you choose a value and that is returned to App1. The
problem is > that when we try to call App1 from App2 with a value say in it's address > string (page.aspx?id=xxx) we have no way of keeping our session variables
in
> App1 (To verify we still have the same user logged in to app1 as
well as > other variables). We've worked around this by App1 looping while
app2
is > running and then having app2 just write to a database and then have app1 > keep checking the db for the value, but that is not nice. Any ideas?
>
>



Nov 18 '05 #5
Don't know if this will help or not, but maybe you'll get something
out of it to help your situation...

I had a similar problem. I didn't so much care to maintain the
session, but rather I wanted to have a seamless login from one
application to another and pass certain info. Couldn't get the
session to pass from one app to the next. You already mentioned that
you used a SQL DB to pass the info, and that is how I solved my issue.
It safe and secure.

A user logs into Application #1, I create an object that can hold any
relevant info (session info or Business info). When the user clicks
on a link to jump to Application #2: the first step I do is clear the
DB table of old info (if any exists), next I populate the DB table
with any relevant info I wish to pass (user info, session info,
business info, whatever...), next I redirect to Application #2 with a
URL variable that acts as a "flag" for the Page Load event in App 2 to
catch. This block of code in the Page Load event (if
url.flag_variable exists then...) calls the DB and populates an object
within App #2. Now anything I had in App #1 that I wanted to use in
App #2 exists as part of #2. The last step after populating the
object is to delete the record from the DB table.

You can use this logic to jump back and forth from one app to another.
Nothing needs to be passed in the URL, other than some dummy variable
that triggers a block of code to read the DB and populate an object.
Because you always delete at the end of this operation, there is never
sensitive info remaining in the DB. Obviously, depending on your
program's structure you would want to "tweak" this to suit your
program's needs. Good Luck.

"Brent" <b@b.com> wrote in message
news:10*************@corp.supernews.com...
Umm, I'll try to explain better. I need the second app to completely run

on
the other server, because it is a mapping program that people will choose
locations on a map. I then need to pass the value of that location back to
my app without it losing it's session.

Nov 18 '05 #6

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

Similar topics

10
by: Brent | last post by:
Hi, I have a problem. We have web applications on 2 seperate servers that need to talk to each other. App 1 needs to pop open a second windos with App2 in it where you choose a value and that is...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...
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.