close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Order of execution/operations…

Thread began 11/07/2012 12:46 pm by alnico431299 | Last modified 11/08/2012 1:00 pm by alnico431299 | 1235 views | 4 replies |

alnico431299

Order of execution/operations…

The help is not clear to me as to what actually occurs when multiple redirect scenarios are possible.

Am I correct to believe: authentication redirects are overwritten as you progress through the code (if they succeed) and that the single redirect is only executed when all scripts have completed?

Thus a 'success' redirect header set in Authenticate User (auth username) would be overwritten by the Authenticate User (auth cookie) redirect header if set. However, if there is no redirect header set in Authenticate User (auth cookie) …then the redirect header set in Authenticate User (auth username) remains set and is executed at the end.

And lastly, if failure occurs, then the script is exited from and no subsequent scripts are executed.

Is this how it works?

Sign in to reply to this post

Jason ByrnesWebAssist

I'm not really surte what you are asking.

I assume your asking about a login page?

The login page will redirect to the Success or failure page if one is set.

if one is not set, no redirect will be executed.

If the login is successful, the session that defines them as logged in will be set.

if not successful, then no session is set.

Sign in to reply to this post

alnico431299

Yes, I am referring to a login process.

"Create Security Pages", generates a login.php page that contains TWO Authenticate User scripts, one against database (username) and one against cookies. They both can contain redirects...which has precedence? (the furthest one down the page?)
Does the script stop and redirect, or can a recordset request occur AFTER an authenticate redirect?

I am not editing these pages but analyzing how they work.

Sign in to reply to this post

Jason ByrnesWebAssist

the first one is only used if the login form is submited.

the second one is used if the Remember me and auto login options are selected.

the redirects will occur automatically on success or failure.

what do you want to accomplish with the recordset?

Sign in to reply to this post

alnico431299

I believe I was getting confused with the triggers and thought both were firing...but it is only one per request.
I am doing AJAX requests and have HTML and PHP separated...studying the auto-generated security assist pages had me confused.

I think I am good now ;-)

Thanks,
Brent

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...