Thread: session Problem
View Single Post
Old 04-06-2008, 02:16 PM   #6 (permalink)
sketchMedia
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

or you could use ob_start() ?

PHP Code:

echo 'wadwadwa';

session_start();

$_SESSION['ls'] = 'dawdwa'
produces the error because the text has been sent to the client, so use output buffering to pipe all the text/cookies/session cookies all at once

PHP Code:
ob_start();
echo 
'wadwadwa';

session_start();

$_SESSION['ls'] = 'dawdwa';
ob_flush(); 
it could also be being caused by whitespace before the <?php.
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
sketchMedia is offline  
Reply With Quote