com web/php: Removing session usage because it's naughty: include/prepend.inc
| From: | Paul Dragoonis | Date: | Fri, 21 Jun 2013 20:39:10 +0000 |
| Subject: | com web/php: Removing session usage because it's naughty: include/prepend.inc | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-22812@lists.php.net to get a copy of this message | ||
Commit: 0f2bffe69c84435e1a2dbfcc7d35c01921f7c1e4
Author: Paul Dragoonis <dragoonis@gmail.com> Fri, 21 Jun 2013 21:39:10 +0100
Parents: 0ceef2881e4602d286c991c2d5af5835bfd8631c
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=0f2bffe69c84435e1a2dbfcc7d35c01921f7c1e4
Log:
Removing session usage because it's naughty
Changed paths:
M include/prepend.inc
Diff:
diff --git a/include/prepend.inc b/include/prepend.inc
index 6300b9c..ded2bcb 100644
--- a/include/prepend.inc
+++ b/include/prepend.inc
@@ -184,13 +184,6 @@ function myphpnet_setbeta($bool = false) {
$bool = (bool) $bool;
- // Session check, this is set when the users are clicking the temporary banners
- if(!isset($_SESSION)) {
- session_start();
- }
-
- $_SESSION['beta_enabled'] = $bool;
-
$MYPHPNET[4] = (bool) $bool;
}
function myphpnet_beta() {
@@ -205,15 +198,6 @@ function myphpnet_beta() {
return true;
}
- // Session check, this is set when the users are clicking the temporary banners
- if(!isset($_SESSION)) {
- session_start();
- }
-
- if(isset($_SESSION['beta_enabled'])) {
- return $_SESSION['beta_enabled'];
- }
-
if (isset($MYPHPNET[4])) {
return (bool)$MYPHPNET[4];
}