PHP Sessions and Cookies

Recent Tutorial

PHP Session Configuration

April 24, 2014
PHP has several configuration directives to control session handling process 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 phpinfo() function. For example I get the following. In this PHP tutorial, we are going to see about few important session […]
This tutorial was added to PHP.

PHP Session Encode Decode

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

PHP Session Vs Cookies

April 17, 2013
PHP Session is a persistent storage type which holds the values set to the $SESSION[], until we attempt to destroy the session. Whereas Cookies are the temporary and also small storage. For each data, there must be a bundle of information like name, value, expiration period and etc will be send. And, Cookies preserves data […]
This tutorial was added to PHP.

↑ Back to Top