INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

E-mail*
Handle

Password
Verify P'word
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Member Feedback

"...These forums are an excellent source and example of the way people can help each other..."

Geography

Where in the world do Tek-Tips members come from?

 Invalid direct reference to form login page ???

RicardoPereira (Programmer)
11 Jun 03 11:08
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
whuang04 (Programmer)
30 Jul 03 1:27
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

Start A New Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Promoting, selling, recruiting and student posting
are not allowed in the forums.
Posting Policies

LINK TO THIS FORUM!
(Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum)
TITLE: Apache: Tomcat Forum at Tek-Tips
URL: http://www.tek-tips.com/threadminder.cfm?pid=877
DESCRIPTION: Apache: Tomcat technical support forum and mutual help system for computer professionals. Selling and recruiting forbidden.

 

Back To Forum