diff options
author | Christian Stocker <me@chregu.tv> | 2011-02-22 11:20:05 +0100 |
---|---|---|
committer | Christian Stocker <me@chregu.tv> | 2011-02-22 11:20:05 +0100 |
commit | 9cf7b8c65a5334bd0968152aa7dbe4f9445b81a8 (patch) | |
tree | 00d337c3d1ffc1c3515a29742d9b521fd85a9dfe | |
parent | 507ce0734e1c64fbe1bb528dc10b821cf3ce24c2 (diff) | |
download | GoogleAuthenticator.php-9cf7b8c65a5334bd0968152aa7dbe4f9445b81a8.zip GoogleAuthenticator.php-9cf7b8c65a5334bd0968152aa7dbe4f9445b81a8.tar.gz GoogleAuthenticator.php-9cf7b8c65a5334bd0968152aa7dbe4f9445b81a8.tar.bz2 |
add ob_start()
-rw-r--r-- | web/index.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/web/index.php b/web/index.php index b458435..36f6fb7 100644 --- a/web/index.php +++ b/web/index.php @@ -1,3 +1,8 @@ +<?php +ob_start(); //i'm too lazy to check when is sent what ;) +//set session cookie to be read only via http and not by JavaScript +ini_set("session.cookie_httponly", 1); +?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> @@ -8,7 +13,6 @@ </head> <body> <?php -ini_set("session.cookie_httponly", 1); include_once("../lib/GoogleAuthenticator.php"); include_once("Users.php"); |