Hi,
I am Narayna Rao, I am a fresh graduate who is learning servlets and JSP. I faced a small problem in JSP. In Orierly book they written that we can find out the number of session are active for a given application using following code.


    HttpSessionContext hsc=session.getSessionContext();
    out.println(hsc+"<br>SessionId"+session.getId()+"<br>");
    Enumeration e= hsc.getIds();
    out.println(e);
    //out.println("<br>"+e.nextElement());
    out.println("Session ID's");
    while(e.hasMoreElements())
    {
        out.println("Session ID's"+(String)e.nextElement());
    }

But I am not geting not a Single Session Id, even though there are 3 session are active in Manager list of Tomcat. Plz let me know why this is happening.

Actually there is no body to help me in this context, and i have only one book with me.

Please Help me.

Yours Sincerly,
Rao
___________________________________________________
Download the hottest & happening ringtones here!
OR SMS: Top tone to 7333
Click here now: http://sms.rediff.com/cgi-bin/ringtone/ringhome.pl




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to