close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

MySQLi Login User and/or Restrict Access to Page no longer working

Thread began 12/18/2018 6:48 am by Nathon Jones Web Design | Last modified 12/20/2018 10:27 am by Ray Borduin | 1703 views | 8 replies |

Nathon Jones Web Design

MySQLi Login User and/or Restrict Access to Page no longer working

Client calls up today to say that they can no longer sign in to their website, which utilises the MySQLi Log In User and Restrict Access to Page behaviours.
The concerning thing being that no changes have been made to this site, at all, since this was all working! Does this suggest a hack?

I've put the URL, FTP details and a temporary user/pass in the private section below. Hope you can identify this quickly as our client is locked out of their website.

Thank you.
NJ

Sign in to reply to this post

Nathon Jones Web Design

Below...

Sign in to reply to this post

Ray BorduinWebAssist

This is a hosting issue. Your site doesn't seem to be saving session variables.

I made a page to demonstrate the problem here:
https://www.dgprescribingmatters.co.uk/test.php?show

Sign in to reply to this post
Did this help? Tips are appreciated...

Nathon Jones Web Design

So, your test script is now reporting success, however when we try to log in to the website (see above credentials) we're shown an unusual array which basically reveals the users details in the browser! :S

Hope you can help. Thank you.
NJ

Sign in to reply to this post

Nathon Jones Web Design

Restrict Access to Page problem....

I just noticed that when I opened the Restrict Access to Page behaviour in DW, to check the settings, and then closed the wizard it changes the if statement, where the trigger is 'on page load' from this:

if ("" == "") {



...to this....

if ("" === "") {



This causes the login to fail and an array displaying the users contact details to be displayed in the browser.

Manually changing this back to:

if ("" == "") {



...resolves the matter. Any idea why the behaviour is doing this and why is it causing the behaviour to crash?

Thank you.
NJ

Sign in to reply to this post

Ray BorduinWebAssist

There shouldn't be any difference between those two statements. I just updated your admin.php page back to ("" === "") and it still works. There must have been some other issue causing the problem.

Sign in to reply to this post
Did this help? Tips are appreciated...

Nathon Jones Web Design

The host is saying that nothing happened on the server. Uh-huh.
Thanks for looking into that.

Sign in to reply to this post

Nathon Jones Web Design

This behaviour is no longer working on another domain now.
http://www.webassist.com/forums/posts.php?id=41699

I've wiped and re-installed the behaviour, quadruple checked the username password combination...if I could see what was being submitted/rejected by the behaviour I could diagnose, but all I get is Restrict Access to Page blocking me out and throwing me to the fail page.

Is it possible to display what's being submitted/rejected by Restrict Access to Page?

Thank you.
NJ

Sign in to reply to this post

Ray BorduinWebAssist

I can't seem to access the site with the FTP information provided. If you have hand coded the page it should really be handled in a premier support ticket.

Sign in to reply to this post
Did this help? Tips are appreciated...

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