Interesting question which I hope there is a workaround for --
I am using Joomla 3.0, for which I have installed the Jumi module. When using session variables, I can use them perfectly through my simple login / createaccount scripts but when I try access the session variable from a Jumi script it doesn't work, any suggestions?
i.e. all of the php files in the directory /Joomla can access the session variable. But, the php files in /Joomla/components/com_jumi/files/ cannot access the session variable.
At the top of my "createaccount.php" page I have the following code:
<?php
if(!isset($_SESSION)){
// this starts the session
session_start();
}
?>
When entering the form data into the database, after validation, I have the following line of code to assign the username to the session variable;
// this sets variables in the session
$_SESSION['name']= $_POST["user"];
Then I want to be able to access the username datavalue from the homepage, called general.php so i use at the top of the page;
<?php
// this starts the session
if(!isset($_SESSION))
{
session_start();
}
echo $_SESSION['name'];
?>
I get an undefined index error as the Jumi php files don't seem to recognise the session?