i'm new to oscommerce, so bear with me.
i'm trying to integrate oscommerce into my existing PHP site, such that upon login into oscommerce, i execute some of my PHP code that does a db lookup and sets session variables that i use later in my application.
i've not met with success, as it seems that the application_top.php is doing something with the user session that i can't seem to figure out. i've boiled my problem down to the following code test cases that dont' seem to work:
set_session.php:
<?php
require('includes/application_top.php');
session_start();
$_SESSION['customer_id']="1234";
header("Location: retrieve_session.php");
require(DIR_WS_INCLUDES . 'application_bottom.php');
?>
retrieve_session.php:
<?php
require('includes/application_top.php');
session_start();
echo "customer id: " .$_SESSION['customer_id'];
require(DIR_WS_INCLUDES . 'application_bottom.php');
?>
i expect to see:
customer id: 1234
but instead i see:
customer id:
what's my fundamental misunderstanding here?




LinkBack URL
About LinkBacks






Bookmarks