View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Validating User Age with Redirect and set lockout Session Variable

Thread began 9/21/2009 5:32 pm by Kevin373660 | Last modified 9/23/2009 6:18 pm by Kevin373660 | 2974 views | 8 replies

Kevin373660

Thank you, Jason. Your detailed instructions were very easy to follow.

However, I seem to have gone amiss somewhere. When I land on the parents_Registration.php, I am automatically redirected to the registration.php (with the “Please ask you parents to sign up your membership.”

The message in the url seems to indicate that it is checking the HelperGroupsRulesPHP file ok. But, I am not sure how it knows that the session is locked out since that variable should not be picked up until you hit the registration.php page. I have tried clearing the browser cash, closing and opening it again while testing. Where did I go wrong?

****************************************************
parents_Registration.php

<?php
if (!session_id()) session_start();
if("" == "") {
$_SESSION["userMinAge"] = "yes";
}
?>
*******************************************************

Registration.php

<?php require_once("../../WA_SecurityAssist/Helper_PHP.php" );
if (!WA_Auth_RulePasses("MinAgeLockout")){
WA_Auth_RestrictAccess("Registration.php");
}
?>
********************************************************
IN URL
Registration.php?accesscheck=%2Fpages%2Fmenu%2Fparents_Registration.php

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