updated to a slightly more improved version of the session management code
should solve bugs with logging in on register_globals = off;
This commit is contained in:
@@ -18,10 +18,6 @@ require(BASE."include/"."html.php");
|
||||
$sidebar_func_list = array();
|
||||
$help_list = array();
|
||||
|
||||
// start session ...
|
||||
apidb_session_start();
|
||||
|
||||
|
||||
function apidb_help_add($desc, $id)
|
||||
{
|
||||
global $help_list;
|
||||
@@ -239,4 +235,15 @@ define("STANDARD_NOTIFY_FOOTER","------- You are receiving this mail because: --
|
||||
"You are an maintainer of this app or an appdb administrator\n".
|
||||
"to change your preferences go to: ".APPDB_ROOT."preferences.php\n");
|
||||
|
||||
/*
|
||||
* Start DB Connection
|
||||
*/
|
||||
opendb();
|
||||
|
||||
/*
|
||||
* Init Session (stores user info and cart info in session)
|
||||
*/
|
||||
$session = new session("whq_appdb");
|
||||
$session->register("current");
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user