Jump to content

Session basics: Independent sessions


webmaster1

Recommended Posts

Putting the security check code as the first thing a page would be kind of important for a script that was trying to show how to create and use an Access Control List. It's only three lines of php code (plus the {} brackets for the if() statement.) You can always move it to be above the form processing code on the pages.

 

Seems straight forward enough. As long as the author didn't have a specific reason for the positioning of the security check code it should just be a cut and paste job then.

 

input validation, escaping, error checking, and error reporting...

 

Fortunately, I'm relatively comfortable with these areas.

 

I like the concept of ACL because I can manage my entire site without having to reiterate the same login and security check pages/tables for different sections of the site. I'll definitely look into Zend once I have a little more free time.

Link to comment
Share on other sites

The only piratical (practical) reason the authors would have for intentionally putting the security check code after the form processing code would be so that the authors or any other hacker can alter the ACL database tables on your site by submitting the appropriate post/get data.

Link to comment
Share on other sites

For anyone using the tutsplus ACL...

 

The pages requiring exit(); for header redirects:

 

[*]/acl/index.php

[*]/acl/admin/index.php

[*]/acl/admin/perms.php

[*]/acl/admin/roles.php

[*]/acl/admin/users.php

 

The pages requiring the repositioning of the security check:

 

[*]/acl/admin/perms.php

[*]/acl/admin/roles.php

[*]/acl/admin/users.php

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.