Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP Session Problem

 
bhimi reddy
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Current situation:
- 1 Webserver
- Many applications (e.g. X, Y, ...)
- Many users (e.g. A, ...)

Workflow:
- 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

Problem:
- 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.


Question:
- 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
Rancher
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic