Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Invalid direct reference to form login page ???

Status
Not open for further replies.

RicardoPereira

Programmer
Jun 3, 2003
255
PT
Hi,

I'am trying to access my webpages with the form based authentication but i have always the same message:
Invalid direct reference to form login page
The request sent by the client was syntactically incorrect (Invalid direct reference to form login page).


Why this happen?

How can i login to my page directly from login page?

Ricardo
 
this is happening because if you use FORM Authentication, and if you go directly to login page to login (assuming valid login userid and password), the servlet engine will redirect back to where ever the last request to access restricted page (or resource) and in your case it was the login page. That's why you get that "Invalid direct reference to form login page" message. The idea is that you cannot login directly from your login page. You first have to goto a page other than the login page such as index.jsp or mydata.jsp (which are restricted resource), and then the web-server will automatically redirect you to the login page and once you have valid login, the web-server will automatically redirect you back to the restricted page such as index.jsp or mydata.jsp, etc. I hope you get the idea.

Will
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top