473,471 Members | 4,637 Online
Bytes | Software Development & Data Engineering Community
Create 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 8511
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
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...
6
by: Roman | last post by:
Which is better when passing values between forms?
2
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...
5
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....
18
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...
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...
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...
1
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
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,...
1
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.