My website is designed using Coldfusion and has 2 places where a user can login:
1.) From my main index page - simple form with username & password text boxes
2.) My Contact Us page - A link (shown below), from my main index page opens a NAMED window, also with a form with username & password text boxes
<a href="#" onclick="window.open('CEmailus.cfm?visitor=yes','EmailManager','width=600,height=600,scrollbars=yes,resizable=yes,status=yes');return false;" target="_blank">Contact Us</a>
WHAT I AM TRYING TO DO REFERS TO THE 2nd OPTION ABOVE: If the user chooses to login from the pop-up window, then I need the original window refreshed and logged in as well.
When a user logs in from either of the forms, the username & password variables are passed through a page called "loginauthentication.cfm" and then upon sucessfully validating the variables, they are redirected to the correct page using "CFLOCATION URL=" xxx ".
TO SUM UP: If a user logs in from the main index page sucessfully, they are redirected to their MAINPAGE and everthing is good. If they log in sucessfully from the pop-up window, they are redirected back to the Contact Us MAINPAGE in the pop-up window . . . . I need to take it one step further and have the main index page to be refreshed when the Contact Us MAINPAGE opens so that the MAINPAGE is also logged in.
TRIED: using "onload ='window.location.replace'(URL)" variations within the pop-up window's body tag, but I don't know how to target this to my main index page - I don't know how to refer to it by name and not sure how to use TARGET with window.location.replace.
Any help would be greatly appreciated.