Simple SESSION support not workign for me yet
-
I have installed this plugin and am not getting a result yet, here’s what I am trying to do and how I am trying to achieve it – I have 3 pages: public, media, profession. Each page states an appropriate $_SESSION as being either
$_SESSION[‘siteStream’] = ‘public’;
$_SESSION[‘siteStream’] = ‘profession’;
$_SESSION[‘siteStream’] = ‘media’;On a fourth page I have the following:
<?php
session_start();
//define variable for detecting which stream user is in
if(isset($_SESSION[‘siteStream’]) ) {
$siteStream = $_SESSION[‘siteStream’];
}?>And in the page to test that things are working
<?php echo $siteStream; ?>
For some reason echo is always giving me ‘profession’ as the output. Can anybody advise as to what I could be doing wrong?
- The topic ‘Simple SESSION support not workign for me yet’ is closed to new replies.