Jump to content

have AJAX submit a login page from a seperate page


divinewind85

Recommended Posts

I have a registration process that once completed requires the user to wait about a minute before my database updates. Sometimes it takes less time and what I want to do is to check to see if that user can log in after 20 seconds and then 40 seconds without them knowing. On my waiting page I want to have a call to the login page that attempts the login. I am trying to use the getAllResponseHeaders to check and see if they logged in.

 

When I run this now I am only getting the headers for the login page and not the headers after the user has attempted to login. I know this is because I am not calling the login page in the right way but I can't figure out what exactly to call. Should I right javascript that populates the fields on the login page and then have it submit it? Then call this javascript function in the AJAX call and pass it the users information.

 

Or is there a better way to get the code across to the login process?

 

Thanks

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.