note 108840 added to function.session-start

From: Date: Tue, 29 May 2012 10:31:55 +0000
Subject: note 108840 added to function.session-start
Groups: php.notes 
Request: Send a blank email to php-notes+get-188279@lists.php.net to get a copy of this message
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/tru123/public_html/demo/invoice/lang/da/lang.php:1) in /home/tru123/public_html/demo/invoice/include/auth/auth.php on line 2 Warning: Cannot modify header information - headers already sent by (output started at /home/tru123/public_html/demo/invoice/lang/da/lang.php:1) in /home/tru123/public_html/demo/invoice/include/auth/auth.php on line 13 I have try every thing but not get any success. Please help me code here: <?php session_start(); // is the one accessing this page logged in or not? if (!isset($_SESSION['db_is_logged_in']) || $_SESSION['db_is_logged_in'] !== true) { if ($_GET['location'] == 'pdf' ) { // not logged in, and coming from the pdf converter move to login page header('Location: ../login.php'); exit; } else if ($_GET['location'] !== 'pdf' ) { // not logged in, move to login page header('Location: login.php'); exit; } else {}; } //ob_flush(); ?> ---- Server IP: 69.147.83.197 Probable Submitter: 59.163.210.229 ---- Manual Page -- http://www.php.net/manual/en/function.session-start.php Edit -- https://master.php.net/note/edit/108840 Del: integrated -- https://master.php.net/note/delete/108840/integrated Del: useless -- https://master.php.net/note/delete/108840/useless Del: bad code -- https://master.php.net/note/delete/108840/bad+code Del: spam -- https://master.php.net/note/delete/108840/spam Del: non-english -- https://master.php.net/note/delete/108840/non-english Del: in docs -- https://master.php.net/note/delete/108840/in+docs Del: other reasons-- https://master.php.net/note/delete/108840 Reject -- https://master.php.net/note/reject/108840 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#188279) next »