• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

login and status error 400

 
Alessandro Ilardo
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
I've got a problem when a user retry to login after he just logout.
When a user request the log out action from my servlet, it runs this code:

This works fine, the client is correctly redirect to the login page.

The problem comes up when the user retry to login on the same page after the redirect. After he submits user and password, it gets a 400 status.

This happens only when the user try to login on the same page he's been redirect after the logout. If he try to go to main index and from there go back to the login page, it works fine.

On the http monitor I gets this message:

javax.servlet.error.message

Invalid direct reference to form login page


What happens??
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are redirecting to a jsp which is defined as <form-login-page> ?
If so, you should read this the following article, and avoid redirecting to the login page :
http://www.artima.com/forums/flat.jsp?forum=121&thread=45510
 
Alessandro Ilardo
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic