RE: securing php pages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You can use either cookies of sessions to maintain security:

Some pseudo code:

Login page:

Login successful? If yes, set session value "LOGIN" = "YES"

Then on all other pages, 1st check session value "LOGIN"....if != "YES"
then bump them to the login page.

Make sense?

-----Original Message-----
From: nitin reddy [mailto:chintu.nitin@xxxxxxxxx] 
Sent: Friday, November 20, 2009 10:57 AM
To: php-general@xxxxxxxxxxxxx
Subject:  securing php pages

Hi I am a new user of PHP..in my project i have put login forms and i am
able to login successful but the pages after the login can be accessed
directly by typing the address so if any one can help in this matter.


Thank you,

-- 
Nitin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux