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-16048@lists.php.net to get a copy of this message | ||
Commit: 59d501dc9a498732b27bd8c991ea442c04d050ed
Author: Paul Dragoonis <dragoonis@gmail.com> Fri, 21 Jun 2013 21:39:10 +0100
Parents: 54f7c00531c223da2dcc88eed645cd9279712085
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=59d501dc9a498732b27bd8c991ea442c04d050ed
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];
}