Detecting the currently connected user to Tomcat

Discussion in 'Java' started by Guy, Sep 27, 2004.

  1. Guy

    Guy Guest

    Hello

    I have a java servlet that runs on a Tomcat server. I have a static
    html page that has a user/password authentication which redirects to
    the servlet itself (kind of "login").

    Now I need to enable/disable certain features in the servlet according
    to the user logged in. Is there a way to programatically know which
    user has logged in to my page ?

    Thanks

    Guy
    Guy, Sep 27, 2004
    #1
    1. Advertising

  2. Guy

    Jonck Guest

    In <> Guy wrote:
    > Hello
    >
    > I have a java servlet that runs on a Tomcat server. I have a static
    > html page that has a user/password authentication which redirects to
    > the servlet itself (kind of "login").
    >
    > Now I need to enable/disable certain features in the servlet according
    > to the user logged in. Is there a way to programatically know which
    > user has logged in to my page ?


    Of course, he just logged in at your site. This means he just filled in
    his username, that should give you a hint as to who's logged in... :)
    Jonck, Sep 27, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?U2lsdmlh?=

    User connected in a web

    =?Utf-8?B?U2lsdmlh?=, Oct 4, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    339
    Hans Kesting
    Oct 4, 2004
  2. Robert Scheer

    Verifying the user is connected

    Robert Scheer, Sep 18, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    439
  3. Brian
    Replies:
    2
    Views:
    2,805
    Brian
    Dec 27, 2004
  4. Brett S Hallett

    detecting if I am connected to a ISP

    Brett S Hallett, Oct 11, 2003, in forum: Ruby
    Replies:
    7
    Views:
    98
    Rob Partington
    Oct 21, 2003
  5. Frances Del Rio

    detecting if a user is connected to the internet...

    Frances Del Rio, Oct 13, 2004, in forum: Javascript
    Replies:
    2
    Views:
    102
Loading...

Share This Page