note 69252 deleted from function.session-start by peehaa

From: Date: Fri, 09 Dec 2016 21:58:05 +0000
Subject: note 69252 deleted from function.session-start by peehaa
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-208307@lists.php.net to get a copy of this message
Note Submitter: colemanc at colemanesolutions dot com ---- 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.

« previous php.notes (#208307) next »