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

Home Posts Topics Members FAQ

passing session variables frm ASP to JSP

Does anyone have experience with passing variables from an ASP page to
a JSP page.

The way it currently works in passing the SSN in the URL. This cannot
be good.

I thought that storing a unique session ID in a cookie and referencing
the SSN from the Session ID would be the correct way to do this. But
since we have two separate servers, IIS and Websphere, how do we
coordinate the session ID?

Perhaps I could write the session ID to a database table in the ASP
page, then requery it with the JSP page.

Any help would be greatly appreciated.

Thanks in advance.

Jason
Jul 19 '05 #1
4 8534
Jason Us wrote:
Does anyone have experience with passing variables from an ASP page to
a JSP page.

The way it currently works in passing the SSN in the URL. This cannot
be good.

I thought that storing a unique session ID in a cookie and referencing
the SSN from the Session ID would be the correct way to do this. But
since we have two separate servers, IIS and Websphere, how do we
coordinate the session ID?

Perhaps I could write the session ID to a database table in the ASP
page, then requery it with the JSP page.

Any help would be greatly appreciated.

Thanks in advance.

Jason


You will need to use a database for this.

Bob Barrows

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 19 '05 #2
As I thought.

Thanks much,

Jason

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #3


As I thought.

Thanks Bob.

jason

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #4
"Jason Us" wrote:

Does anyone have experience with passing variables from an
ASP page to a JSP page.


I'm not even aware of a way to pass variables from one ASP page to another
ASP page.

You can certainly pass information in Forms, QueryStrings and Cookies from
browsers to ASP scripts, and can pass a Response from a script to a browser.
In neither case is a variable passed from one script to another. Even
Server.Execute( ) does not allow the passing of variables (though Request and
Session objects are shared).

There is always the possibility of using a proxy for the browser to allow
two scripts to interact. For example, one script can use the ServerXMLHTTP
object to send a Request and receive a Response from another script. That
interaction is still limited to the same restrictions as a browser-server
one, however.

What about session variables? There is still no script-to-script
interaction. IIS generates a unique session ID and passes it to the browser
as a transient cookie. Every time a Request arrives with an ASP session
cookie, IIS looks to see if there is a matching active session, and if so,
exposes the corresponding session variables to the script.

As Bob suggested, you can use a DB as a temporary store that is available to
both web servers, but unavailable to the public. It is a good idea to
generate unique IDs to identify these "sessions", and if you are using SQL
Server, you can just generate a GUID with NEWID(). Send the GUID back to the
browser in a cookie, then redirect him to the other server.

This is, of course, a simplification. But you get the idea.
--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Jul 19 '05 #5

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

Similar topics

1
1801
by: sumit | last post by:
hi, I am opening a popup using window.showModalDialog ('abc.aspx','','dialogWidth:1200px;dialogHeight:800px;left: true;help:no;resizable:yes;');"); In abc.aspx, session variables should be accessible. I have checked it with IE 6. And in abc.aspx, session
6
3864
by: Roman | last post by:
Which is better when passing values between forms?
2
2199
by: ramendra | last post by:
Hello, I am having some trouble with passing session variables from one aspx page to another aspx page through an applet. Let me clarify the problem more ... I have an aspx page which contains a button on click of which i call an applet to do some work. Once the applet finishes its job it calls another aspx page to continue. But the problem is that i am no longer able to access
5
10501
by: GeRmIc | last post by:
Hi, I have an ASPX application from which I need to pass session variables (ex:username and password) to an ASP Page. How do I do this? Could you pls give a n example code for both aspx and asp. Thanks!
18
3444
by: BillE | last post by:
When a user opens a new IE browser window using File-New-Window the integrity of an application which relies on session state is COMPLETELY undermined. Anyone who overlooks the fact that File-New-Window creates an instance of IE in the same process with the same SessionID as the parent window is in big trouble. This fundamentally restricts the usefullness of using session state management. I probably missed it somewhere - can...
22
14896
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 done in 3 steps: Step 1. Normal http login page. Step 2. A page called login.php that takes the posted username, stores it as $_SESSION, and registers it session_register("username"); user is taken to the personalized page according to his username...
0
8999
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
9394
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
8260
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...
1
6803
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6080
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
4712
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3322
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
3
2223
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.