Note that there are some explanatory texts on larger screens.

plurals
  1. POCannot modify header information - headers already sent by (i am using cookie in my set i want to reset the cookie)
    text
    copied!<p>//Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/students/public_html/beta/inner/logout.php:1) in /home/students/public_html/beta/inner/logout.php on line 4</p> <p>//Array ( [cookie_name] => gausulpersonalive@gmail.com [cookie_id] => 1 [PHPSESSID] => c0abab10adf83838ee357bc6dbdf7cfd )</p> <p>//Warning: Cannot modify header information - headers already sent by (output started at /home/students/public_html/beta/inner/logout.php:1) in /home/students/public_html/beta/inner/logout.php on line 15</p> <p>//Warning: Cannot modify header information - headers already sent by (output started at /home/students/public_html/beta/inner/logout.php:1) in /home/students/public_html/beta/inner/logout.php on line 16</p> <p>//Notice: Undefined variable: _COOKIE in /home/students/public_html/beta/inner/logout.php on line 18</p> <p>//LOGOUT PAGe CODE</p> <pre><code>&lt;?php ob_start(); //error_reporting(0); session_start(); session_cache_limiter('none'); ini_set(‘display_errors’, true); ini_set(‘display_startup_errors’, true); error_reporting (E_ALL); print_r ($_COOKIE); unset($_SESSION['useremail']); unset($_SESSION['userid']); unset($_SESSION['user_form_data']); unset($_SESSION['url']); if(isset($_COOKIE)){ setcookie("cookie_name",null,time()-60*60*24*100,'/'); setcookie("cookie_id",null,time()-60*60*24*100,'/'); unset($_COOKIE); print_r ($_COOKIE); } session_destroy(); ob_end_flush(); ?&gt; </code></pre> <p>//cookie set page</p> <pre><code>if($cookie=='on') { setcookie("cookie_name",$users['email'],time()+60*60*24*100); setcookie("cookie_id",$users['id'],time()+60*60*24*100); } </code></pre> <p>but cookie is not unset!!!!!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload