close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Cannot protect page following instructions

Thread began 4/06/2010 11:54 am by di5856 | Last modified 4/07/2010 10:34 am by di5856 | 1154 views | 4 replies |

di5856

Cannot protect page following instructions

I have User Registration Solution Pack. I followed the instructions in "Restricting acccess to your pages using the User Registration Solution Pack," but the page opens even though I am not logged into the site." This is the code I inserted:

<?php require_once( "../registration/WA_SecurityAssist/Helper_PHP.php" ); ?>
<?php
if (!WA_Auth_RulePasses("Email Confirmed")){
WA_Auth_RestrictAccess("users_LogIn.php");
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

I go to my site, I don't log in, and I select the page with the restriction code from my drop-down menu, and it opens. Since I'm not logged in, shouldn't it redirect me to my users_LogIn.php page? Is there something missing in my code?

Thanks!

Sign in to reply to this post

Jason ByrnesWebAssist

can you send a link to the restricted page please so we can have a look.

Sign in to reply to this post

di5856

Here's the link

governance-financial-budget.html

Thanks!

Sign in to reply to this post

Jason ByrnesWebAssist

this page is a static html page.

Server side PHP code cannot be executed on a static html page.

the User Registration Solution pack can only be used to protect php pages.


you will need to change the extension of your page from html;
governance-financial-budget.html

to php:
governance-financial-budget.php

for the contact form solution pack code to execute.

Sign in to reply to this post

di5856

Thanks! That fixed it. I just had to modify my paths to the Helper_PHP.php and users_Profile.php docs.

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