PHP Sessions and Cookies

Recent Tutorial

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
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