close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Log in problem

Thread began 5/21/2012 10:11 am by bill3786 | Last modified 5/21/2012 5:18 pm by Jason Byrnes | 642 views | 5 replies |

bill3786

Log in problem

The client's has requested the following system for the site.

Product prices are to be shown in sterling or euros. The product and detail pages have if/else statements controlling what prices are displayed depending on the users country at login.

The sterling prices (if) are shown if the users country is UK and euro prices (else) are shown if the users country is not UK. All UK customers pay through the site using Worldpay and all non-UK customers are not shown an add to cart button and are instructed to order by phone and pay by phone.

This system all works well in testing but has thrown up one problem as follows.

If a UK user logs in by opening the login page and has the "remember me" and "log me in automatically" ticked and then clicks login, the prices for all subsequent products are shown correctly in sterling.

However if a UK user logs in by opening the login page and has the "remember me" and "log me in automatically" ticked but doesnt actually click the login button and then uses the menu bar to see products with the login page still displayed, the prices for all subsequent products are displayed in euros.

Is there anything which can be done to eliminate this problem?

As a secondary question, what is the correct operation of the "log me in automatically" tickbox? If it has been previously ticked by a user should the login page be displayed on a subsequent login?

Sign in to reply to this post

Jason ByrnesWebAssist

please send a copy of the login page.

Sign in to reply to this post

bill3786

Attached login page.

Attached Files
login.zip
Sign in to reply to this post

Jason ByrnesWebAssist

there are 2 authenticate user behaviors on your page.

the first is used when the the login button is pressed.

the second is used when the autologin option is selected.

In the first one, you have set the UserCountry session to be set, but in the second one, you have not.


you will need to edit the second behavior to set the user country session variable.

also, the second one does not have a success redirect set, this is why it doesn't appear that the login has worked, you should set a success redirect on the second authenticate user behavior.

Sign in to reply to this post

bill3786

Ok, thanks. That has stopped euro prices showing incorrectly.

I have added the same redirect for both the login succeeds and login fails from the first authenticate behaviour to the second. Is this correct, you only mention the success direct?

Also the first behaviour had a User Validated =1 in the database tab, do I add this to the second behaviour?

Sign in to reply to this post

Jason ByrnesWebAssist

the 2 instances of the authenticate user behavior should use al;l of the same settings, except for the trigger.

the trigger should be the only difference between the 2.

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