You may want to try to write an entry to a "currentlyloggedon" table... then read the table every so often to see who is logged on... on logout, remove the entry...
It's a little cumbersome, but will probably do the trick -----Original Message----- From: Stuart Belden [mailto:[EMAIL PROTECTED] Sent: June 26, 2003 8:47 AM To: [EMAIL PROTECTED] Subject: Re: how to find out that a specific user has logged in The method you describe won't work. When a user logs in, the user object gets stuffed into the session, and you have to get that specific instance of the user object to determine if that user is logged in or not. JetspeedSecurity.getUser("turbine") just grabs all the info for that user from the db, and whether they're logged in or not is not stored in the db. AFAIK there's no simple way to see if a specific user is logged in or not. It's possible, I would imagine, but not simple. hth, stu >>> [EMAIL PROTECTED] 06/26/03 03:57AM >>> hello all.. i've been trying to find out how to know a user has logged in.. i use the following: JetspeedUser ju = JetspeedSecurity.getUser("turbine"); context.put("online",String.valueOf(ju.hasLoggedIn())); and use velocity portlet to tell me that anon is online or not. user is online = $online problem is even if turbine has logged in. it displays false instead of true. please help. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]