• 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
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

HttpSession sharing between browser instances on same machine!

 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear All,

I think know issues for everyone.

My application is running in Spring MVC.I have below problem.

A user (USER A) logged-in to the site. After successful log-in, we have UserProfile object in session and we display username on browser title.

Another user (USER B) logged -in to the site. After his successful login, his username details displayed in his browser title-bar.

Problem is, if now I refresh the browser of USER A then, USER B username details get displayed in his browser title-bar. (USER B details displayed on USER A page)

This is banking application,so that customer need to login different userid at the same time.Please provide your comments to solve this issue.

Thanks in advance,
selva
 
Bartender
Posts: 1210
25
Android Python PHP C++ Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

This is banking application,so that customer need to login different userid at the same time.


What is the use case?
In my opinion, relying on IE's inprivate browsing / chrome's incognito mode / firefox's whatever-it's-called for correct behaviour is bad both from usability and from security aspects.
Most users won't be so browser savvy as to know how these work under the hood. For most, a new window is a new window, regardless of whether it's opened using Ctrl+N or from start menu or Ctrl+shift+N, and they expect them all to behave the same.



 
Ranch Hand
Posts: 607
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There some good info here.
The standard answer though is that it is not possible (not without a lot of hacks, at least). You case may be more relaxed (intranet app, limited users) and you maybe have some liberty to make assumptions.
Still that's not the way web browsers were supposed to function, its a bad requirement....
 
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Are you using same browser to login with two user ?
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic