PHP Sessions and Cookies

Secure Remember Me for Login using PHP Session and Cookies

June 22, 2018
Login Script with ‘Remember Me’ feature will allow the user to preserve their logged in status. When the user checks the Remember Me option, then the logged in status is serialized in the PHP session or cookies like storages. While writing user login data in the session or cookie we need to be aware of […]
This tutorial was added to PHP.

PHP Session Configuration

April 24, 2014
PHP has several configuration directives to control session handling processes like session upload and URL rewriting. These are set with PHP configuration file php.ini. To know the values that are set we can use the phpinfo() function. For example, I get the following. In this PHP tutorial, we are going to see about few important […]
This tutorial was added to PHP.

PHP Session Encode Decode

November 22, 2013
In PHP, session encodes and decode operations are automatically performed while storing session data into memory and reading stored session, respectively. While encoding, the $_SESSION array is converted into serialized string format and decoding reverts serialized string back to its original form. This serialization will not return the same format like PHP serialize(). The encoded […]
This tutorial was added to PHP.

PHP Session Vs Cookies

April 17, 2013
Sessions and cookies are the global storages used to store data to be persistently available all over the site. These globals can be accessed from anywhere. In PHP, there are predefined global array variables $_SESSION and $_COOKIES to contain session and cookies data, respectively. Sessions are stored in the server and the cookies are preserved […]
This tutorial was added to PHP.

↑ Back to Top