|
-
May 20th, 2007, 01:44 PM
#1
Thread Starter
New Member
Blocking pages
I'm have created a login system and all but it's gonna seem pointless if you can't do anything special. What I'm going to do is block some of the pages for non-members. How do I do that?
-
May 20th, 2007, 02:17 PM
#2
Re: Blocking pages
I don't think you technically block pages using PHP.
Based upon whether the session is active or not, you display something different to the screen.
-
May 20th, 2007, 04:17 PM
#3
Re: Blocking pages
Once you have checked the users password and ID you can set a session variable containing the user ID. You can then put a piece of code at the top of each page to check the variable exists, if it does not redirect to the login page.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|