tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Hubbard <pet...@staff.telkomsa.net>
Subject Multiple browser windows sharing the same session - dirty hack solution
Date Thu, 11 May 2006 10:34:39 GMT
Quite simply, if you have already logged in to the system, you get
kicked out until later. Like so:

HttpSession session = request.getSession(true);
                
if (session.getAttribute("details")!=null)
{
     log.warn("Already logged in.");
     redirect="/errors/alreadyloggedin.jsp";
}
else
{
     session.setAttribute("details", client);                
     redirect = "/portal/portal.jsp";
} 


This gets me out of the problem of multiple logins through the same
browser window (Firefox and Opera) or the same PC (IE) having their
session information confused.

I've not found any other ways around this problem, or solutions of how
to allow individual browser windows and tabs to have individual session
data. Is there a real solution for this, and if so could some kind soul
please point me in the right direction?

Thanks

-- 
Peter Hubbard <peterh@staff.telkomsa.net>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message