note 101353 deleted from session.examples.basic by felipe

From: Date: Sat, 18 Dec 2010 18:04:41 +0000
Subject: note 101353 deleted from session.examples.basic by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-175043@lists.php.net to get a copy of this message
Note Submitter: admin at phpisland dot x10 dot bz Reason: 1 ---- I was wondering if it isn't illegal if you do it like this: <?php require_once("../config.php"); $start = session_start(); if($submit) { $defaultDB = $_POST['db']; $start; $_SESSION['count'] = 0; if($_SESSION['count'] = 1) { $_SESSION['count'] = ++; } else die("Session was killed"); ?>

« previous php.notes (#175043) next »