Page 1 of 1

Query to jos_session fails

Posted: Mon Jan 28, 2008 9:34 pm
by sgreen
Hi,

Given this code:

        $sessionid = session_id();
    echo "\n";
    $database->setQuery("SELECT * FROM #__session WHERE session_id='$sessionid'");
    $sessionvars = $database->loadObjectList;

Does anyone have any idea why this query would fail?  $sessionid has a valid value but $sessionvars always has a count of 0.  Query works fine from the command line, given a valid session value.

Stumped.

StuG