This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of Darcy DeClute's Scrum Master Certification Guide: The Definitive Resource for Passing the CSM and PSM Exams and have Darcy DeClute on-line!
See this thread for details.
  • 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
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

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: 608
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 ?
 
Villains always have antidotes. They're funny that way. Here's an antidote disguised as a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic