jQuery in Action, 3rd edition
The moose likes JSP and the fly likes JSP Session Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP Session Problem" Watch "JSP Session Problem" New topic

JSP Session Problem

bhimi reddy

Joined: Jun 03, 2004
Posts: 6
Current situation:
- 1 Webserver
- Many applications (e.g. X, Y, ...)
- Many users (e.g. A, ...)

- User A log on the system using application X
- After he logged on, the session contains data regarding to which usergroups he belongs to
- User A is now changing into appplication Y
- Application Y must check, whether user A is allowed to use this application

- even both applications use following code...

<jsp:useBean id="anmeldung" scope="session" class="usermanager.beans.Login" />

application Y can not access to the session variables, that has been set by application X.

- How to solve this problem?
- How can appl. X pass over variables to application Y (regarding the same user)?
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13026
The intent of the servlet / JSP API is to keep "web applications" completely separate for security. Therefore an extra effort is required to communicate between applications - for example by means of a common database.
I agree. Here's the link: http://aspose.com/file-tools
subject: JSP Session Problem
It's not a secret anymore!