I need to redirect from one domain into an another. Hence I am using sendRedirect(url). But i need to also get few attributes which were set in session. Is there any way to get the session attributes after using sendRedirect(url)?
Asked
Active
Viewed 232 times
-2
-
cookies , query parameters. – Suresh Atta Aug 26 '14 at 12:37
-
Possible duplicate of http://stackoverflow.com/questions/13461838/preserving-session-in-java-with-sendredirect – Seyf Aug 26 '14 at 12:37
-
cookies will not be useful if the user's cookie is disabled. I have a list of attributes set in the session which will be difficult to pass as url parameter. – JavaLearner Aug 26 '14 at 12:40
1 Answers
0
Normally it's impossible to access one application session from another. If you're redirecting you can pass required attributes in the url (but maybe it's not the best idea, conisder security for this approach). Some servers may have some magic tricks to share sessions between applications deployed on the same server (I think it's possible in weblogic)

Nadir
- 1,369
- 1
- 15
- 28