-Original Message-
From: Ricardo Andres Quintero [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 28, 2004 12:04 PM
To: [EMAIL PROTECTED]
Subject: Not Logged in with the same loggin-password if it is already
registered.
Hello Guys
I need not to let users to login in my app
It may not be as easy as the current session (for the new login) and the session that
you want to invalidate are different objects.
The main issue would be how to get a reference to all active sessions via some session
id. Apache Axis, for example, keeps track of them with a list of
Geeta,
I read Ricardo's message differently in that the new login would come from
another machine, so the session wouldn't be shared and invalidated as you
wrote below. ough, technically, it (the session) could be shared across
computers if cookies were turned off and they had the same
Ricardo,
I can't think of any easy way to do that strictly within JAAS, but you
didn't write if you were using JAAS.
If you are using an Account object (of some sort) in the Session context,
here is an idea for you:
Have an application-scope object containing a map of usernames (or id
numbers).
yes you are right and I just realised that in fact.. ok never mind. i really need to
go home
-Original Message-
From: David Friedman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 28, 2004 4:28 PM
To: Struts Users Mailing List
Subject: RE: Not Logged in with the same
Exactly! Or use HttpSessionlistener and database solution (that jim outlined)
simultaneously..
(We are doing almost this except as a solution to a kind of opposite problem - when
a user logs off we need to do soem work so.. this seems to work nicely)
-Original Message-
From: news
-Original Message-
From: Geeta Ramani [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 28, 2004 1:25 PM
To: Struts Users Mailing List
Subject: RE: Not Logged in with the same loggin-password if it is
already registered.
Exactly! Or use HttpSessionlistener and database solution
How do you handle the situation where the user closes the browser without logging out
(the windows X is not always our friend ;) ). I am not familiar with the
SessionListener. Would it help in some way?
Robert
[EMAIL PROTECTED] 7/28/2004 3:25:16 PM
Exactly! Or use HttpSessionlistener and
AFAIK session timeout is the only notification you can get here. There
are undoubtedly some wacky things we can do with javascript - reduce the
session timeout to a small value and include some javascript polling in
every page or something along those lines, but at the end of the day it
comes
ps. But if you know what's good for you you will stay right away from javascript..
-Original Message-
From: Brett Connor [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 28, 2004 4:47 PM
To: Struts Users Mailing List
Subject: Re: Not Logged in with the same loggin-password if it is
HTTP is a connectionless protocol, effectively a stateless protocol.
Although 1.1 added some fancy bits like keepalive I believe these are
more for performance than connection / lifecycle support, although I
expect others here may well know more about this than I do. If you close
the browser,
Absolutely.. and yes, i did note your use of that appropriate adjective..:)
Something happens to me though when I see the word javascript and I can't help
myself..;)
-Original Message-
From: Brett Connor [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 28, 2004 4:59 PM
To: Struts
So are you saying that you have tomcat handling both html and jsp's?
Unfortunately I don't have that luxury in our environment. Apache serves
html, Resin serves jsps.
Brian
-Original Message-
From: Jim Barrows [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 28, 2004 4:00 PM
To: Struts
13 matches
Mail list logo