Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > PHP

Reply
 
LinkBack Thread Tools
Old May 21st, 2009, 12:49 PM   #1
New Member
 

Join Date: Apr 2007
Location: Georgia
Age: 33
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 ugadawgvi is on a distinguished road
PHP Page Protection Problem

Hello all,
I'm using a pretty simple PHP login/password program. It works fine but I would like to be able to protect certain pages on my website. You see each user has his/her own personal page that they land on after they login from the homepage. I would like to be able to protect these user pages. I don't want other users to be able to view another user's page. Anyone have any suggestions?
Thanks
ugadawgvi is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 21st, 2009, 01:12 PM   #2
Reputable Member
 

Join Date: Apr 2009
Location: The Toon
Posts: 134
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 davidj is on a distinguished road
Re: PHP Page Protection Problem

you need to set a session on login

then just test each page and check the initial session has been set else bounce them out
davidj is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 21st, 2009, 01:48 PM   #3
New Member
 

Join Date: Apr 2007
Location: Georgia
Age: 33
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 ugadawgvi is on a distinguished road
Re: PHP Page Protection Problem

Thanks for the reply. I'll do some tutorials on PHP Sessions. Seems pretty simple.
ugadawgvi is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Data Protection Act alexgeek Legal Discussion 7 March 10th, 2010 05:29 AM
clwyd fire protection Chong Full Website Reviews 7 July 12th, 2009 06:28 AM
Multiple Account Protection CloudedVision How is this done? 6 July 6th, 2008 12:17 PM
Copyright protection research LittleDoug The Café 0 March 5th, 2007 08:10 AM
password protection? orlanime Flash and ActionScript 5 July 22nd, 2005 06:15 PM


Search Engine Optimization by vBSEO 3.2.0 RC8