Decoding the session


 

Decoding the session

In this example you will learn about decoding the session in PHP.

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

Ads