Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Session JSP/Servlet  RSS feed

 
Rene Ribeiro
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good afternoon,

I do using a login session, but when the user is not logged present the following message.
This web page has a redirect loop

ERR_TOO_MANY_REDIRECTS.










 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66208
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you go to the login page, the filter is redirecting to the login page, which invokes the filter which sends it to the login page, which invokes the filter which sends it to the login page, which invokes the filter which sends it to the login page, which invokes the filter which sends it to the login page, which invokes the filter which sends it to the login page, which invokes the filter which sends it to the login page, which invokes the filter which sends it to the login page, which invokes the filter which sends it to the login page, which invokes the filter which sends it to the login page, which invokes the filter which sends it to the login page, which invokes the filter which sends it to the login page, which invokes the filter which sends it to the login page, which invokes the filter which sends it to the login page, which invokes the filter which sends it to the login page, which invokes the filter which sends it to the login page, which invokes the filter which sends it to the login page, which invokes the filter which sends it to the login page, which invokes the filter which sends it to the login page, which invokes the filter which sends it to the login page, which invokes the filter which sends it to the login page, which invokes the filter which sends it to the login page, which invokes the filter which sends it to the login page, which invokes the filter which sends it to the login page, which invokes the filter which sends it to the login page, which invokes the filter which sends it to the login page, which invokes the filter which sends it to the login page, which invokes the filter which sends it to the login page, which invokes the filter which sends it to the login page, which invokes the filter which sends it to the login page, ...

You get the idea?

Mapping the filter to /* is not a good idea. It will apply the filter to everything, including your login page, your images, your JavaScript files, your CSS stylesheets, and so on.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!