diff --git a/lam/templates/config/conflogin.php b/lam/templates/config/conflogin.php
index 4f9651bd..74c4077c 100644
--- a/lam/templates/config/conflogin.php
+++ b/lam/templates/config/conflogin.php
@@ -32,6 +32,32 @@ session_save_path("../../sess");
setlanguage();
+// remove settings from session
+session_unregister('passwd');
+session_unregister('passwd1');
+session_unregister('passwd2');
+session_unregister('serverurl');
+session_unregister('admins');
+session_unregister('suffusers');
+session_unregister('suffgroups');
+session_unregister('suffhosts');
+session_unregister('minUID');
+session_unregister('maxUID');
+session_unregister('minGID');
+session_unregister('maxGID');
+session_unregister('minMach');
+session_unregister('maxMach');
+session_unregister('usrlstattr');
+session_unregister('grplstattr');
+session_unregister('hstlstattr');
+session_unregister('maxlistentries');
+session_unregister('lang');
+session_unregister('scriptpath');
+session_unregister('scriptserver');
+session_unregister('samba3');
+session_unregister('domainSID');
+session_unregister('filename');
+
echo ("");
echo ("");
diff --git a/lam/templates/config/confmain.php b/lam/templates/config/confmain.php
index 65bb808e..07d6865f 100644
--- a/lam/templates/config/confmain.php
+++ b/lam/templates/config/confmain.php
@@ -56,7 +56,7 @@ if ($_POST['back'] || $_POST['submitconf']){
if ($_POST['grplstattr']) $grplstattr = $_POST['grplstattr'];
if ($_POST['hstlstattr']) $hstlstattr = $_POST['hstlstattr'];
if ($_POST['maxlistentries']) $maxlistentries = $_POST['maxlistentries'];
- if ($_POST['language']) $language = $_POST['language'];
+ if ($_POST['lang']) $lang = $_POST['lang'];
if ($_POST['scriptpath']) $scriptpath = $_POST['scriptpath'];
if ($_POST['samba3']) $samba3 = $_POST['samba3'];
if ($_POST['domainSID']) $domainSID = $_POST['domainSID'];
@@ -67,7 +67,7 @@ if ($_POST['back'] || $_POST['submitconf']){
if ($_POST['filename']) $filename = $_POST['filename'];
session_register('passwd', 'passwd1', 'passwd2', 'serverurl', 'admins', 'suffusers',
'suffgroups', 'suffhosts', 'minUID', 'maxUID', 'minGID', 'maxGID', 'minMach',
- 'maxMach', 'usrlstattr', 'grplstattr', 'hstlstattr', 'maxlistentries', 'language',
+ 'maxMach', 'usrlstattr', 'grplstattr', 'hstlstattr', 'maxlistentries', 'lang',
'scriptpath', 'scriptserver', 'samba3', 'domainSID', 'filename');
echo("");
}
@@ -263,7 +263,7 @@ if(is_file($languagefile))
}
fclose($file);
// generate language list
-echo ("