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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

WA_Auth_RestrictAccess issues...

Thread began 10/22/2009 11:31 am by fdotmedia | Last modified 10/26/2009 2:36 pm by Jason Byrnes | 1461 views | 4 replies |

fdotmedia

WA_Auth_RestrictAccess issues...

I have run the wizard a hundred different times with a hundred different variables...

All I need is index.php login to redirect to home.php. That works fine, but, if I kill the session I can navigate directly to the home.php...

groups:
everyone - 2 & 3
admin - 3

The Rule for 'everyone' is:
Allow if <?php echo $_SESSION['userlevel']; ?> in group 'everyone'

The Rule for 'admin' is:
Allow if <?php echo $_SESSION['userlevel']; ?> = 3

It does not work...

I can pull the details out of session to display on the page - even the userlevel...

Anyone have any ideas??? I'm at a loss...

Ted

Sign in to reply to this post

fdotmedia

Thought I should put the code in here...

<?php require_once('Connections/PathTo.php');?>
<?php require_once( "WA_SecurityAssist/Helper_PHP.php" ); ?>

<?php
if($_SERVER["REQUEST_METHOD"] == "POST"){
$WA_Auth_Parameter = array(
"connection" => $PathTo,
"database" => $database_PathTo,
"tableName" => "users",
"columns" => explode($WA_Auth_Separator,"emailaddress".$WA_Auth_Separator."password".$WA_Auth_Separator."orgcode"),
"columnValues" => explode($WA_Auth_Separator,"".((isset($_POST["username"]))?$_POST["username"]:"") ."".$WA_Auth_Separator."".((isset($_POST["userpassword"]))?$_POST["userpassword"]:"") ."".$WA_Auth_Separator."".((isset($_POST["userorgcode"]))?$_POST["userorgcode"]:"") .""),
"columnTypes" => explode($WA_Auth_Separator,"text".$WA_Auth_Separator."text".$WA_Auth_Separator."text"),
"sessionColumns" => explode($WA_Auth_Separator,"uid".$WA_Auth_Separator."userlevel".$WA_Auth_Separator."emailaddress".$WA_Auth_Separator."orgcode"),
"sessionNames" => explode($WA_Auth_Separator,"uid".$WA_Auth_Separator."userlevel".$WA_Auth_Separator."emailaddress".$WA_Auth_Separator."orgcode"),
"successRedirect" => "landing.php",
"failRedirect" => "dead.php",
"gotoPreviousURL" => TRUE,
"keepQueryString" => TRUE
);

WA_AuthenticateUser($WA_Auth_Parameter);
}
?>

The the internal pages have:

<?php require_once( "WA_SecurityAssist/Helper_PHP.php" ); ?>
<?php
if (!WA_Auth_RulePasses("everyone")){
WA_Auth_RestrictAccess("not-logged-in.php");
}
?>

However, like I said, while not logged in I can view the page and it displays everything, except the session stuff...

Any additional ideas?

Sign in to reply to this post

Jason ByrnesWebAssist

Most likely your groups have a blank value in them.


it is very easy to add a group member with a blank value and not see it.


Open the Security Assist Access Groups manager and edit each group that you have created.

try to click bellow the last group member to see if there is a blank group member.

If you can select a line with nothing in it bellow the last group member there is a blank one. remove each of the blank group members you find.



the easiest way to see if there is a blank group member or not is directly in the WA_SecurityAssist/HelperGroupsRulesPHP.php file.

Sign in to reply to this post

fdotmedia

Thanks Jason!

That was it... Thank you...

Sign in to reply to this post

Jason ByrnesWebAssist

No worries, glad to hear it's working.

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