note 49873 modified in function.session-id by danbrown

From: Date: Tue, 11 Nov 2008 16:16:45 +0000
Subject: note 49873 modified in function.session-id by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-146391@lists.php.net to get a copy of this message
Try this code snippet, from a book by a security expert who says this is more secure to place on every page: <?php session_start(); $_SESSION['name'] = "YourSession"; if (!isset($_SESSION['initiated'])) { session_regenerate_id(); $_SESSION['initiated'] = true; } ?> --was-- Try this code snippet, from a book by a security expert who says this is more secure to place on every page: session_start(); $_SESSION['name'] = "YourSession"; if (!isset($_SESSION['initiated'])) { session_regenerate_id(); $_SESSION['initiated'] = true; } http://php.net/manual/en/function.session-id.php

« previous php.notes (#146391) next »