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. Advertisements

  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. Advertisements

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:
    424
    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:
    585
  3. =?Utf-8?B?ZXN3YW5zb24=?=

    getting currently logged in user asp.net c sharp class

    =?Utf-8?B?ZXN3YW5zb24=?=, Feb 28, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    5,984
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Feb 28, 2006
  4. shraddha
    Replies:
    10
    Views:
    6,486
    shraddha
    May 31, 2005
  5. Brian
    Replies:
    2
    Views:
    3,010
    Brian
    Dec 27, 2004
  6. Prabhat

    If User connected to IIS

    Prabhat, Oct 7, 2005, in forum: ASP General
    Replies:
    11
    Views:
    360
    Evertjan.
    Oct 7, 2005
  7. Brett S Hallett

    detecting if I am connected to a ISP

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

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

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