Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > passing session variables frm ASP to JSP

Reply
Thread Tools

passing session variables frm ASP to JSP

 
 
Jason Us
Guest
Posts: n/a
 
      12-31-2003
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
 
Reply With Quote
 
 
 
 
Bob Barrows
Guest
Posts: n/a
 
      12-31-2003
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.


 
Reply With Quote
 
 
 
 
jason us
Guest
Posts: n/a
 
      12-31-2003
As I thought.

Thanks much,

Jason

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
jason us
Guest
Posts: n/a
 
      12-31-2003


As I thought.

Thanks Bob.

jason

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
Dave Anderson
Guest
Posts: n/a
 
      12-31-2003
"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.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cant access TreeView Node frm Btn Click event after populating frm another click even chandrajit_in ASP .Net 0 01-03-2008 10:45 AM
passing on values frm one frame to another nivedita_pai@rediffmail.com Javascript 3 07-29-2007 04:28 PM
frm["custom"] vs frm.getAttribute("custom")? F. Da Costa Javascript 3 01-30-2004 11:54 AM
No sound frm Micro 9 but is on real 1 gary Computer Support 0 01-09-2004 02:16 PM
Need help! Sample not working in frm 1.1 Catherine Jones ASP .Net 0 12-24-2003 03:59 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57