Home Tutorial Php Examples Session Date Encode

 
 

Share on Google+Share on Google+
Session Date Encode
Posted on: July 31, 2009 at 12:00 AM
Advertisement
In this example you will learn about session date encode in PHP.

Session Date Encode

In this example, you will learn how to encode date session. First create a HTML form and call the PHP form action in it.

In PHP code, use session_encode () function to access session date encode.

For this first register the session and define the session variable. 

<?php
session_start();
session_register('Roseindia');
$_SESSION["Roseindia"]= "Roseindia";
session_encode();
?> 

HTML Action Form

<html>
<head>
<title>Encode Session Data</title>
</head>
<body>
<form action="sessiondecode.php" method="get"/>
<input type="submit" name="submit"/>
</form>
</body>
</html>

Advertisement

Related Tags for Session Date Encode:


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.

Posted on: July 31, 2009

Recommend the tutorial

Advertisements Advertisements
 

 

 

DMCA.com