PHP Classes

File: p1.php

Recommend this page to a friend!
  Classes of Logan Dugenoux   sessionSharing   p1.php   Download  
File: p1.php
Role: Example script
Content type: text/plain
Description: example part 1
Class: sessionSharing
Share session variables between sites
Author: By
Last change:
Date: 20 years ago
Size: 477 bytes
 

Contents

Class file image Download
<?
require( "sessionShare.php" );

$HTTP_SESSION_VARS["mycart"] = array( array("Book of something",1,15),
                                      array(
"Beer", 4, 1.12) );
$HTTP_SESSION_VARS["mymail"] = "logan.dugenoux@netcourrier.com";
$sh = new sessionShare();

$otherServer = ""; // put here "http://secure.server.com/"

//header( "Location: ". "p2.php?".$sh->createTransmitString());
// or
echo "<a href=".$otherServer."p2.php?".$sh->createTransmitString().">Go to secure site</a>";

?>