secure login

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Anant
Forum Commoner
Posts: 66
Joined: Wed Jul 14, 2010 11:46 am

secure login

Post by Anant »

Hi,

I have a folder SECURE in my application and all the pages under this folder need to go through login check.

Now the problem is for instance -

There are 2 pages within Secure folder - http://www.abc.com/test.php and other page is http://www.abc.com/test.php?page=2

I want the first page i.e. - http://www.abc.com/test.php to be accessible without login and when user clicks on page 2 - the login box pops up to login. I have sorted out the login process, but i just need to know the best possible way to make the first page accessible which is under the secure folder.
Anant
Forum Commoner
Posts: 66
Joined: Wed Jul 14, 2010 11:46 am

Re: secure login

Post by Anant »

any suggestions ?
implications
Forum Commoner
Posts: 25
Joined: Thu Apr 07, 2011 3:59 am

Re: secure login

Post by implications »

It depends on how your current login system is scripted but in order to do what you said, the concept would be to password protect the second page but not the first page by implementing some kind of code that prevents access to a page only if the code is present?
Post Reply