PHP Secure Sessions Class
Written by admin on Saturday, December 6th, 2008 in General.
nced PHP users and a few learners will have heard that PHP sessions have many vulnerabilities and security issues. So if creating a website for large social networks or any other large websites which requires user authentication and protected pages you do not wanting to be using insecure methods of programming.
The best way to combat PHP sessions but still have an easy to use user authentication system we can create a Custom PHP Sessions class. For this we need Cookies and a MySQL table. Instead of storing user information and login sessions in $_SESSION we store it within our MySQL table. This gives added security because everything is stored in a database and not in a single variable array.
This Sessions class system has the ability to create, update, delete and check sessions. This system in no way uses the $_SESSION variable only cookies which a secure in their own right if used and created properley.
