Commit:    59d501dc9a498732b27bd8c991ea442c04d050ed
Author:    Paul Dragoonis <[email protected]>         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];
     }


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to