Commit: 0f2bffe69c84435e1a2dbfcc7d35c01921f7c1e4 Author: Paul Dragoonis <[email protected]> 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]; } -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
