Hi,
I think, session value cannot be shared across website, b'cos, the server
creates a new session to the client or browser when the url requested is a
new web site. Since the jsp's are in one site and ASP's in another website,
they cannot share a common session id. Two different sessions will be
created for them, unless both the ASP and JSP are used in the same
website(webserver).
krish
----- Original Message -----
From: Cogley, Jonathan <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 06, 2000 8:29 PM
Subject: Re: Passing Session values between ASP and JSP
> Daryani,
>
> If you are just saving simple values in the session why not just use
> a temporary cookie? Save the values to the cookie from ASP and then
> read the values in from JSP. Your session id in ASP depends on the client
> having cookies enabled anyway ... so why not?
> If there are many values .. then use a cookie dictionary ...
>
> I think this is the simplest solution ...
>
> Cheers,
> Jonathan
>
>
> -----Original Message-----
> From: Daryani Santosh [mailto:[EMAIL PROTECTED]]
> Sent: 30 June, 2000 3:16 PM
> To: [EMAIL PROTECTED]
> Subject: Passing Session values between ASP and JSP
>
>
> Hi All,
> I am working on JSPs that interact with another website , where
> the
> pages are ASPs , I need to get the session values set in a ASP into a JSP.
> Session variables work fine between ASP-ASP and JSP-JSP but inter ASP-JSP
> communication results in null session variables. I am not sure though ,
but
> I
> believe that there should'nt be any problem in doing so.
> Can anyone throw some light on this. Your response is appreciated
>
> ASP code
> <%
> Session("cono")="7719"
> %>
>
> JSP code
> <%
> String cono= (String)session.getValue("cono")
> out.println("Value returned from session ="+cono);//results in a null
> %>
>
> Thanks in advance
> Santosh
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets