102 |
//------------------------------------------------------------------------------ |
//------------------------------------------------------------------------------ |
103 |
//- Session setup: |
//- Session setup: |
104 |
|
|
105 |
// Neither proxies, nor the clients are allowed to cache session data: |
if ($common['client']['session_enabled']) { |
|
session_cache_limiter('nocache'); |
|
106 |
|
|
107 |
// This is neccessary to make the $_SESSION global available: |
// Neither proxies, nor the clients are allowed to cache session data: |
108 |
session_start(); |
session_cache_limiter('nocache'); |
109 |
|
|
110 |
|
// This is neccessary to make the $_SESSION global available: |
111 |
|
session_start(); |
112 |
|
|
113 |
|
} |
114 |
|
|
115 |
common_benchmark_addstep('common: session init'); |
common_benchmark_addstep('common: session init'); |
116 |
|
|
327 |
//---------------------------------------------------------- |
//---------------------------------------------------------- |
328 |
//- File functions: |
//- File functions: |
329 |
|
|
330 |
|
//---------------------------------------------------------- |
331 |
|
//- Utility functions: |
332 |
|
function common_get_baseurl() { |
333 |
|
$baseurl = "http://" . $_SERVER['SERVER_NAME'] . "" . $_SERVER['SCRIPT_NAME'] . "/"; |
334 |
|
return $baseurl; |
335 |
|
} |
336 |
|
|
337 |
//------------------------------------------------------------------------------ |
//------------------------------------------------------------------------------ |
338 |
|
|