This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 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: 12682
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:
subject: JSP Session Problem
Similar Threads
SQL injection?
Recursive number problem
Database Connection and Session
switching from one application to another