Problem with session_register fixed. Problem with duplicate sessions fixed

This commit is contained in:
duergner 2003-03-20 16:53:44 +00:00
parent 25825c4a69
commit 8487afe3a3
1 changed files with 3 additions and 3 deletions

View File

@ -34,9 +34,6 @@ if($action == "checklogin")
$result = $ldap->connect($username,$passwd);
if($result == True) // Username/password correct. Doing some configuration and loading main Frame.
{
session_register("ldap"); // Register $ldap object in session
session_register("language"); // Register $language in session
// setting language
$language = explode(":", $language);
putenv("LANG=" . $language[1]);
@ -45,6 +42,9 @@ if($action == "checklogin")
textdomain("lam");
include("./main.php");
session_register("ldap"); // Register $ldap object in session
session_register("language"); // Register $language in session
}
else
{