Jump to content

PHP - Help Blocking Access


ChompGator

Recommended Posts

Hello there

 

I have a login, that users fill in their username/password > then click submit and there is a handle form that checks the username/password in a database..If the username/password is right it sends them to the members area page, if the username/password is wrong it doesn't let them login.

 

Problem Im having is - if I wanted to bypass the login - alls I really have to do is enter the URL to my members area in the address bar and hit `enter` and boom~ Just bypassed the login.

 

My question is > I dont want users to be able to do that - (just enter the URL to the members area and they get in) Is there a code I can put at the top of each page in my members area that checks to see if they're logged in.

 

Or what are everyones suggestions, for stopping users from just  entering the URL to get into the members area?

 

- Thanks

Link to comment
https://forums.phpfreaks.com/topic/99613-php-help-blocking-access/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

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