]> andersk Git - sql-web.git/blobdiff - lib/mitsql.lib.php
change password feature
[sql-web.git] / lib / mitsql.lib.php
index b275c304b8991b0e7a7cae02ba1bc559be4b3cd4..db3790df2fd57df3e2ef4533e7939b118ffb4f35 100755 (executable)
@@ -13,10 +13,14 @@ require_once('security.lib.php');
 
 require_once('display.lib.php');
 
+$BASE_URL = 'http'.(isSSL()?'s':'').'://'.$_SERVER['SERVER_NAME'].BASE_URL;
+
 if (isset($_SERVER['REQUEST_URI'])) {
     //$thisPath=pathinfo($_SERVER['REQUEST_URI']);
     //session_set_cookie_params(0, $thisPath['dirname']);
-    session_set_cookie_params(0, $BASE_URL);
+       //$arr = explode('/', $_SERVER['SCRIPT_NAME']);
+    //session_set_cookie_params(0, '/'.$arr[1].'/');
+    session_set_cookie_params(0, BASE_URL);
     session_start();
     define('INTERACTIVE', 1);
 } else {
This page took 0.50226 seconds and 4 git commands to generate.