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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Need help modifying the default login forms

Thread began 11/03/2010 4:43 pm by SaladoGuy | Last modified 11/10/2010 10:09 am by SaladoGuy | 1688 views | 9 replies

SaladoGuyBeta Tester

Need help modifying the default login forms

Using Security Assist 1.1.9 (I have the whole "super suite" of WA tools)

FYI, in this post I use the term "redirect" loosely because I don't know the exact technical definition of "redirect".

For my site I generated a complete set of registration and log in forms using the SecurityAssist series of tutorials (securityassist/ "Introduction to SecurityAssist"
01_overview.swf and so on)

During initial user testing, I'm getting reports from the users that they are having a difficult time with the registration and login screens. I need to change some things but I'm not sure how to do it, so let me describe the problems and what I need - and maybe someone can offer a solution.

The way the my site is setup now, when a user tries to add an item to the cart, they are immediately forced to login (the viewcart page has the login page rule restriction enabled). (For reasons that I won't get into right here, I really do need them to log in before they view the cart.) If they ALREADY have an account, they log in and are sent to the viewcart page, and everything is perfect.

However, if they must register because they DON'T already have an account, what ends up happening is this:

1) Customer clicks add to cart
2) Customer sees "Log in or Register" screen, where they click the link to the registration form (I added this link myself, it's just an regular HTML text link)
3) Customer fills out registration form and clicks submit
4) Customer is sent BACK to the login form, apparently because registering does not simultaneously log them in and also because possibly the "insert record" server behavior (a DataAssist behavior) is set to redirect to the login screen
5) Customer submits the login form, and is then sent to the "edit profile" page, instead of viewcart.php.

Usually by this time the new user is terribly confused and wants to leave the site :-(

So in other words, if they already have an account, they log in and are correctly sent (redirected?) to the view cart page, but if they have to register for a new account, the requested destination page (viewport) & redirect gets "lost" and the user ends up being sent to the profile page, instead of the viewcart page. I assume this is because the default action of the login form is to redirect to the profile page, IF the login form was called directly (and somehow by the time we get back around to it, it no longer knows that the user was headed for the viewcart page).

I think there's 2 essential technical problems: First, somewhere during the registration process, the redirect gets lost. Is there some recommended way to preserve that? In other words, I need the registration page to redirect to the original destination page like the login form does, except that somehow the destination page needs to be preserved through several pages (instead of just one).

Second - is there someway to log the user in when they register WITHOUT sending them to the login screen? In other words, make it so that filling out and submitting the registration form logs them in as well as creates their account. My understanding is that the login screen essentially sets several session variables, and once those are set, that's the definition of"logged in". Is that a correct understanding/assessment, or does something else happen during login?

I have another problem with detecting incorrect email addresses, but I'll post about that in another thread.

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