Home Tutorial Php Examples Session Date Encode

 
 

Session Date Encode
Posted on: July 31, 2009 at 12:00 AM
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>

Related Tags for Session Date Encode:


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.