You're on the right track.
Each servlet should check for the session object, and verify that the
session is current. You can store your connection object with the session,
or other information that determines access to the application has been
established, and check these each time the servlet is called. Then if the
access is to be denied, send back a page to that effect that contains a link
to the login page and forces them to login again.
Dan
> ----------
> From: Andrey Sazonov[SMTP:[EMAIL PROTECTED]]
> Reply To: Andrey Sazonov
> Sent: Friday, March 26, 1999 7:41 AM
> To: [EMAIL PROTECTED]
> Subject: How to force user to login
>
> Hi all!
>
> I have following design problem and I hope anybody can help me.I need to
> develop web based
> access to the database. Every user who try to work with this system need
> to
> log in before real access
> to database. It works fine with session tracking mechanism (access to
> database provided by set
> of appropriate servlets and beans).
> But problem occurs when the user bookmarked some page and the tries to
> come
> directly to bookmarked page.
> Does anybody know the way how to prevent this and show login page instead
> bookmarked one?
>
> I think this could be implemented by processing of all request to whole
> site
> by one servlet, which will
> further dispatch all requests, but I'm afraid this could apply additional
> bottleneck to system.
>
> ---------------------------
> Sincerely
> Andrey Sazonov
> ([EMAIL PROTECTED])
>
> ==========================================================================
> =
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff JSP-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".