Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

sendRedirect and saving Session variables

 
Roger Studner
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm running jboss with embedded tomcat (if that is the correct way to say that).

I am trying to use sendRedirect (with or without encodeUrl, tried both) to go from one web app, to another web app.

I'm hoping to have things saved on the Session saved (userId etc) so that 2nd web app has a clue WHO you are, without having to login again.

I've read about crossContext and such, but find it very hard to get documentation involving jboss w/ embedded tomcat.

Anyone have any ideas ?

Thanks,
Roger Studner
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sessions stick to the context in which they were created.
Tomcat does have a single signon feature but your sessions do not get carried from context to context.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe this thread will help you:
http://www.coderanch.com/t/86023/Tomcat/RequestDispatcher-foward-cross-web-application
 
pawank gupta
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
AS ben mention that session stick to context but u can try it

bcause tomcat5 give the facility for single sign on by which u can do.

r second option is clustering.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic