Currently, jaas try to take the user the same page where the user was when the session timed out. I dont know where it remembers the last page accessed.
There is no way to configure this from your application that I am aware of. You could extend Tomcat's FormAuthenticator. The extension would always return to a url set in an init param of your ServletContext when user successfully authentciates. This is just one idea.
If you are using the FormAuthenticator you will have to integrate your custom FormAuthenticator to do this.
You will need to extend org.apache.catalina.authenticator.FormAuthenticator and override the
public boolean authenticate(HttpRequest request,
method to redirect you to a URI of your choosing.
You can integrate the custom FormAuthenticator in the authenticator.properties file in catalina.jar
If you are using Basic/Digest I don't think you can do anything there