Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Multiple User with same login without session mix up  RSS feed

 
Jack Ralph
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have a web based application with roughly around 200 users. We have a concept where in two users say A & B are there. User A can login with his login and also User B can login with A's login. This is handled by a "Purge User" concept.

My problem is, because of which,

1) When User A logs in, he gets some session of User C or D ???

I want to keep my "Purge User" concept unchanged, but yet should solve the session mix up.

Please throw some light on the above issue.

Regards,
JP
 
olivier dutranoit
Ranch Hand
Posts: 81
IBM DB2 Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

How can you mix up sessions? thats not possible...
Every client has its own session...

Unless you login on the same client (same computer, same browser)...
For example, FF shares its 'session' over all the FF browsers running on the same client...(of course you can change this in the options of the browser...)
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65825
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jack Ralph wrote:This is handled by a "Purge User" concept.


Perhaps you need to explain what you mean by "the purge user concept".

As stated, sessions cannot be mixed up -- but it's easy to code things incorrectly and get data mixed up.
 
Jack Ralph
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Olivier & Bear - Loads of thanks for your replies.

Let me explain what happens exactly,

Say two users are there A & B

User A logs in as A in some location
User B logs in as B in some other location


But User B is getting the initial login page & other attributes related to User A. I want to handle this problem. Further i want to know why this problem occurs???

Regarding the "Purge User" concept, it is like

The application is compatible with allowing two login's for a single user. Like User A logged in as A, and also User B logged in as User A.

Please suggest how am i to manage this issue.


Regards,
JP
 
olivier dutranoit
Ranch Hand
Posts: 81
IBM DB2 Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you post some code and show what is wrong and where? So we could understand it better.

Without it is hard to have an idea of how and what you are working with...
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65825
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The most likely reason for this type of problem is threading issues.

Do you have Java code in your JSPs (in 2001, there should be no Java code in JSPs!) that use scriptlet declarations?

Do you have instance variables in your servlets?

Are you putting information in application scope that should go into session scope?

And so on...
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!