Here's the situation. I just updated my intranet to use cookies, and everything's fine except for one thing. If validation fails during new user registration, they are kicked back to the login screen, instead of being redirected back to the registration form with their valid info filled in.
I have Application.cfm checking for the existance of a cookie or a session variable. If it doesn't find either one, it presents the login screen. On the login screen, I have two links, one to ForgotPassword.cfm, and the other is to AddNewPerson.cfm, which is the form page. The action page is AddUserValidate.cfm. Now, before Application.cfm sends the login screen, it checks to see what page the user is trying to access. If it is one of the three I have listed above, it goes right to it without the login screen.
When I validate the registration data, I use CFLOCATION to send them back to AddNewPerson.cfm and pass back all the information. If validation is successful, all is well, but if validation fails, they get the login screen instead of AddNewPerson.cfm. In other words, if they link to AddNewPerson.cfm, it works, if they are redirected with CFLOCATION, it doesn't.
How can I direct them back to the form page? I already made that page an exception to requiring logging in. Thanks! Calista :-X
Jedi Knight,
Champion of the Force
I have Application.cfm checking for the existance of a cookie or a session variable. If it doesn't find either one, it presents the login screen. On the login screen, I have two links, one to ForgotPassword.cfm, and the other is to AddNewPerson.cfm, which is the form page. The action page is AddUserValidate.cfm. Now, before Application.cfm sends the login screen, it checks to see what page the user is trying to access. If it is one of the three I have listed above, it goes right to it without the login screen.
When I validate the registration data, I use CFLOCATION to send them back to AddNewPerson.cfm and pass back all the information. If validation is successful, all is well, but if validation fails, they get the login screen instead of AddNewPerson.cfm. In other words, if they link to AddNewPerson.cfm, it works, if they are redirected with CFLOCATION, it doesn't.
How can I direct them back to the form page? I already made that page an exception to requiring logging in. Thanks! Calista :-X
Jedi Knight,
Champion of the Force