Home Tutorial Php Examples Decoding the session

 
 

Decoding the session
Posted on: July 31, 2009 at 12:00 AM
In this example you will learn about decoding the session in PHP.

Decoding the Session

session_decode() is used for decoding session. It decodes the session from a string. It returns True on success or False on failure.

Syntax

bool session_decode ( string $data )

Parameters

data

The encoded data to be stored.

Example:

This example shows you to how to set decoding session.

<?php
session_start();
$session=$_SESSION["brijesh"];
echo "gggggg".$session."<br>";
session_decode($session);
echo "hhhhhh".$session;
?>

Related Tags for Decoding the session:


Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.