• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

Multiple User with same login without session mix up

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 81
IBM DB2 Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...)
 
Sheriff
Posts: 67750
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67750
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
I knew I would regret that burrito. But this tiny ad has never caused regrets:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic