close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Login Question

Thread began 4/01/2013 11:44 am by Kamen Nikolov | Last modified 4/02/2013 1:53 pm by Kamen Nikolov | 1133 views | 6 replies |

Kamen Nikolov

Login Question

Hello,

My pages are working just fine but I want to improve the work flow. Right now I have two login pages. One for visitors shopping (login -> goes to checkout) and one for visitors wanting to change their profile (login -> goes to users_profile.php).

Is there a way to have one loging page and if visitors are shopping they are asked to login and redirected to the checkout page. With the same login page if they are NOT shopping they click on My Account and -> login and they either go back to the previous page and on top of the page they will have link yo Update their profile and logout?

Do I have have two login pages i order to accomplish that?

Thank you.

Sign in to reply to this post

Jason ByrnesWebAssist

In the authenticate user behavior, there is a checkbox option to goto the previous page if it exists.

That setting uses a URL Variable named accesscheck. you can for the login success URL by setting the Accesscheck URL variable to contain the page location.

for example, to force the redirect to go to the checkout page, set the link to the login page as:
<a href="login.php?accesscheck=/checkout.php">Login</a>

Sign in to reply to this post

Kamen Nikolov

Thank you Jason,

Right the login page is set to redirect this way because the checkout page forces user to login/register before proceeding:

"successRedirect" => "checkout.php?loggedIn=1",
"failRedirect" => "users_login.php?failedLogin=1",
"gotoPreviousURL" => TRUE,
"keepQueryString" => TRUE

as you can see gotoPrevious is also set. This set up goes directly to checkout and this is good so far.

If use the same loging page for the users who are not buying anything how should I go about it with the given set-up.

Thank you

Sign in to reply to this post

Jason ByrnesWebAssist

set the success redirect to go to the page you want to load _if the person is not going through the checkout_


the restriction on the checkout page will automatically bass the access check variable to over ride the redirect and use the checkout page instead.

Sign in to reply to this post

Kamen Nikolov

OK.

In this case I should remove "successRedirect" => "checkout.php?loggedIn=1", and let the "gotoPreviousURL" => TRUE, to take over. I am understanding you correctly? If they are going trough checkout the check out page will check and if they are login it will proceed if not it will kick in the login page.

Thank you

Sign in to reply to this post

Jason ByrnesWebAssist

set the success redirect to the profile page and make sure the Go To Orevious URL is set to true.

Sign in to reply to this post

Kamen Nikolov

Thank you. I will try that.

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...