note 69252 added to function.session-start

From: Date: Mon, 28 Aug 2006 22:30:27 +0000
Subject: note 69252 added to function.session-start
Groups: php.notes 
Request: Send a blank email to php-notes+get-116446@lists.php.net to get a copy of this message
In reference to the "Cannot send session cache limiter..." error message, I have tried a number of ways to supress the error. An If/Then block will work only if you store the flag in a session variable, cookie, or other method. Or, you can obviously supress error messages by the error level. However, the simplest way to do it is a simple: @session_start(); This will hide all error messages resulting from that line of code. I would only recommend this method AFTER you have fully tested your code but it is very effective when that is your only error and you do not want to completely stop code exectution by means of a die() or exit() function. ---- Server IP: 64.71.164.2 Probable Submitter: 70.91.173.89 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.session-start.php Edit -- https://master.php.net/note/edit/69252 Del: integrated -- https://master.php.net/note/delete/69252/integrated Del: useless -- https://master.php.net/note/delete/69252/useless Del: bad code -- https://master.php.net/note/delete/69252/bad+code Del: spam -- https://master.php.net/note/delete/69252/spam Del: non-english -- https://master.php.net/note/delete/69252/non-english Del: in docs -- https://master.php.net/note/delete/69252/in+docs Del: other reasons-- https://master.php.net/note/delete/69252 Reject -- https://master.php.net/note/reject/69252 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#116446) next »