M
Marcus
I have an ASP.Net 2.0 app that needs to jump out onto another web
server running a java server page website (Apache TomCat 4.1.12) that
I control. I hate that it needs to do this, but we are using some
internet GIS mapping web tool that comes "precanned" with lots of
mapping ability and its pages run on JSP. Theasp.net Session_End event
is quite important to catch as there is a lot of cleanup that needs to
happen in the database relating to the user of that session. Thus, I
need to maintain the session across ASP.Net and JSP webservers. A
hackish way that I accomplished this was to use cookieless sessions
which embeds the session id in the url (e.g.
http://www.abc.com/(S(2zmfutqdfdvm2amvmjpljovi))/Introduction.aspx),
have the jsp side parse out the session id and keep it around while
the user does what they need to do on the jsp pages, and then when it
is time to return to the ASP.Net side just construct a url that has
the cookieless session format with the same session id.
This works OK, but cookieless sessions have some limitations (e.g.
must use only relative addressing). Is there any other way that I can
recapture a session when I return to an asp.net page where I formerly
had a session just moments before? This is all required because I need
to capture that session_end event. It would be great if I could just
pass around a sessionid in the query string and create a session with
that specified id, but that doesn't appear to be possible.
Thanks.
server running a java server page website (Apache TomCat 4.1.12) that
I control. I hate that it needs to do this, but we are using some
internet GIS mapping web tool that comes "precanned" with lots of
mapping ability and its pages run on JSP. Theasp.net Session_End event
is quite important to catch as there is a lot of cleanup that needs to
happen in the database relating to the user of that session. Thus, I
need to maintain the session across ASP.Net and JSP webservers. A
hackish way that I accomplished this was to use cookieless sessions
which embeds the session id in the url (e.g.
http://www.abc.com/(S(2zmfutqdfdvm2amvmjpljovi))/Introduction.aspx),
have the jsp side parse out the session id and keep it around while
the user does what they need to do on the jsp pages, and then when it
is time to return to the ASP.Net side just construct a url that has
the cookieless session format with the same session id.
This works OK, but cookieless sessions have some limitations (e.g.
must use only relative addressing). Is there any other way that I can
recapture a session when I return to an asp.net page where I formerly
had a session just moments before? This is all required because I need
to capture that session_end event. It would be great if I could just
pass around a sessionid in the query string and create a session with
that specified id, but that doesn't appear to be possible.
Thanks.