Share on Google+Share on Google+

Decoding the session

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

Advertisements

Posted on: July 31, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.