• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Form Login Refresh

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I am using form login authentication method to protect a page ,PayAccount. The problem is that when a user successfully logs in and is able to access the PayAccount page if he/she presses the browser back button the form-login-page is presented again to the user and on submitting correct login information the following Tomcat error message is displayed
Apache Tomcat/4.0.4 - HTTP Status 404 - /j_security_check
type Status report
message /j_security_check
description The requested resource (/j_security_check) is not available.
Another error occurs when a user refreshes the PayAccount page. It shows a blank page. Clicking on the browser back button gives the same error as the first error.
I want to know is this the expected behaviour for a protected page when you configure form based authentication using your servlet container like Tomcat or am I making a mistake somewhere.
Please help.
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you want to make the login page more intelligent so that if they are already logged in it redirects them to the index page?
With the the second error, what is the URL in the address bar? Is it the URL for the j_security_check or the PayAccount page?
Dave
 
Ezeilo Uchenna
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes I want to make the URL more intelligent but it is supposed to send the user to the protected PayAccount (the next page the user expects) when they have logged in before. If the user has logged in
No, when a user refreshes the PayAccount page after a successful login he/she gets a blank page with the URL of PayAccount still showing in the browser's address bar.
Uche
[ November 22, 2002: Message edited by: Ezeilo Uchenna ]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic