PDA

View Full Version : Sessions


suzkaw
07-21-2003, 11:12 AM
What all sessions are available for displaying on other parts of the site? For example I want to display the php include with some special text if the user is not logged in.
Something like this:

<?php
if(!isset($_SESSION['amember_product_ids'])) {
// create new SESSION
echo "<p>First Portion of the article which comes from the database.</p>";
$_product_id = array(2,3); // or $_product_id = array(1) if it so
include("/home/sites/www.lavox.com/web/member/plugins/protect/php_include/check.inc.php");
}
else
{
echo "$full_page_text";
}
?>

But from looking at other posts all I can find is
$user.name $user.email $user.name_f $user.name_l

Is it possible to get the session id of the product they have subscribed too?

alex-adm
07-25-2003, 07:51 PM
$_SESSION['amember_product_ids'] contains array of product # which customers is subscribed to.