Does HttpSessionListener works with servlet2.2 ?  We have iPlanet web server
6. It does not support jsp1.2 and servlet2.3...

How do you find values in HttpSessonListener? Can you be a bit specific?
Say, if I store set session variable useName  with the value "abc". How do
I get that value in HttpSessionListener?
Also,  how do you detect session expiration? How do you remove the session
attribute when expired?

Thanks a lot,
RD

On 1/2/03 12:54 AM, "Ritesh Gupta" <[EMAIL PROTECTED]> wrote:

> I think you can use the HttpSessionListener to find the values you want and
> then store the username and timestamp in the ServletContext.
>
> Ritesh
> ----- Original Message -----
> From: "Roland Dong" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, January 01, 2003 12:32 AM
> Subject: How to get values of all session variable--application wide?
>
>
>> I am trying to implement a admin jsp page which display all ACTIVE users
> at
>> the moment.  Is it possible to somehow use session mechnism to implement
>> that?
>>
>> For example:
>>
>> User  A login with the user name "UA"  and  that user name is stored in a
>> session variable  "loginName".  the current time is stored in a session
>> variable "curTime"
>>
>> User B login with the user name "UB"  and  that user name is stored in a
>> session variable  "loginName".  the current time is stored in a session
>> variable "curTime".
>>
>> User C.....
>>
>> User D.....
>>
>> I  want the active user 's login name to be displayed:
>>
>> User currently logined in                 Logged in Since
>> ---------------------------------    ----------------------
>> UA                                            .........
>> UB                                            ........
>> UC                                            .......
>> UC                                            ........
>>
>>
>> Is it possible to implement this without resorting to databse? say using
>> httpsession listener?
>>
>> Thanks a lot!
>> RD
>>
>>
> ===========================================================================
>> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
>> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
>> Some relevant FAQs on JSP/Servlets can be found at:
>>
>>  http://archives.java.sun.com/jsp-interest.html
>>  http://java.sun.com/products/jsp/faq.html
>>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>>  http://www.jguru.com/faq/index.jsp
>>  http://www.jspinsider.com
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://archives.java.sun.com/jsp-interest.html
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.jsp
> http://www.jguru.com/faq/index.jsp
> http://www.jspinsider.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to