I have a login servlet that authenticates users with a database of valid username and password with they are valid they are redirected to the index page.. The servlet works fine..
Now I am wondering how do I track a user for example a user logins in and stays loggged in until they log out or the session expires..
Also how do I configure it so that users cannot access the index..directly..e.g. if they put in the path of the index page they can do their directly without even logging in.. can tell me how or give me an example of this?? This will all be done with servlets..