1
0

Use secure HTTPS cookies

This commit is contained in:
Garvin Hicking
2006-08-30 09:13:50 +00:00
parent 9041bda1a0
commit 509a065caf
3 changed files with 10 additions and 2 deletions

View File

@ -9,6 +9,10 @@ if (defined('S9Y_FRAMEWORK')) {
@define('S9Y_FRAMEWORK', true);
if (!headers_sent()) {
if (!empty($_SERVER['HTTPS'])) {
@ini_set('session.name', 'SSLSID');
@ini_set('session.cookie_secure', '1');
}
session_start();
}