Tag Archives: session

Codeigniter: Manage sessions

Codeigniter Session Library: Codeigniter provides a core library to manage session located at /system/libraries/Session/Session.php. Initializing a Session: To initialize the Session class manually in your controller constructor, use the $this->load->library() method:

Using session library: Once loaded, the Sessions library object will be available using:

Set session data:

Check session data exists or… Read More »

Miscellaneous: How session works?

Hello friends, Today, we are going to discuss how session works? But before this, we need to understand why do we need session concept? As we all know that HTTP is a stateless protocol. When a user visits a web site, the user’s browser sends an HTTP request to the web server, which in turn… Read More »

Zend Framework 2 : Manage Sessions

Refer : http://framework.zend.com/manual/2.1/en/modules/zend.session.storage.html Step 1 : Full Code

Step 2 : Create Session

Step 3 : Check Session key existence

Step 4 : Distroy session