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