Recommend this page to a friend! |
Classes of Ramesh Narayan Jangid | PHP Cookie Session Handler | README.md | Download |
|
DownloadCookie Session HandlerHandler class that stores session data in cookies BasicsFor web application with high traffic we use different modes to saving session data; example: files and databases. To manage session of web application with high traffic it becomes difficult with files or a database as a mode to save session data. This class provides solution to this problem by using COOKIE as a storage media in a safer way with encryption. To use the encryption we need to follow few steps to create the base64 encoded $key and $iv as below.
Storing above base64 encoded key and iv in config file
Instructions to useInclude the below file in scripts to use session
> Note: The amount of details that can be stored in session depends on the length of string cookie supports in a browser. |