Login   Register  
PHP Classes
elePHPant
Icontem

File: p1.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2003-10-13 19:47
Size: 477 bytes
 

Contents

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

$HTTP_SESSION_VARS["mycart"] = array( array("Book of something",1,15),
                                      array(
"Beer"41.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>";

?>