summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Stocker <me@chregu.tv>2011-02-22 11:20:05 +0100
committerChristian Stocker <me@chregu.tv>2011-02-22 11:20:05 +0100
commit9cf7b8c65a5334bd0968152aa7dbe4f9445b81a8 (patch)
tree00d337c3d1ffc1c3515a29742d9b521fd85a9dfe
parent507ce0734e1c64fbe1bb528dc10b821cf3ce24c2 (diff)
downloadGoogleAuthenticator.php-9cf7b8c65a5334bd0968152aa7dbe4f9445b81a8.zip
GoogleAuthenticator.php-9cf7b8c65a5334bd0968152aa7dbe4f9445b81a8.tar.gz
GoogleAuthenticator.php-9cf7b8c65a5334bd0968152aa7dbe4f9445b81a8.tar.bz2
add ob_start()
-rw-r--r--web/index.php6
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");