Eddie,

There is a known issue with cross-context communication and sharing
information between the sessions
(http://issues.apache.org/bugzilla/show_bug.cgi?id=4690).
Unfortunately, I ran into the same issue and had to write a hack in my
environment.  I already had a custom realm, so I modified it to create
my own type of Principal (extending the GenericPrincipal used in Tomcat)
as the return of the authenticate methods.  I modified our Principal
object to implement the java.util.Map interface and passed parameters
between my two contexts using keys into the Map (of course, I cleared
them on the destination context as well).  You will also need to enable
the SingleSignOn Valve in your server.xml.

If anyone has a better option on how to get around this issue with the
Servlet Spec, please let me know!

I hope this helps.


-----Original Message-----
From: Eddie Liang [mailto:eliang@;edge.com] 
Sent: Friday, November 15, 2002 4:18 PM
To: 'Tomcat Users List'
Subject: How can I pass the session variable to another session?

Hi,
  Does anybody know how to pass session variables to another session in
tomcat?  

I have a JSP page which can catch the user login, password. I store the
login, password as JSP variables, I need to pass these variable to other
page for the database initialization.  Anyone can help?

Thank you.
 
Eddie Liang
Database Architect
Phone: 630-297-1229



--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>

Reply via email to