View Full Version : Session_start problen!
onmosh
March 1st, 2008, 03:24 AM
Hey guys,
I don't have any idea whats the problem. lacking of other function or what?
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at E:\server\htdocs\UploadImage.php:6)
simplistik
March 1st, 2008, 07:45 AM
put
ob_start()
as the very first line of ur script
onmosh
March 1st, 2008, 07:54 PM
its not working even i've put ob_start(); at the beginning.
simplistik
March 3rd, 2008, 08:12 AM
post your base script code. the file that contains all your includes and functions.
prstudio
March 3rd, 2008, 10:59 AM
Yeah because you might be calling session_start() twice... or it's not the very "first" line because you've included a file before that reference. ob_start() has to be line one on that page... before you call any includes.
onmosh
March 7th, 2008, 03:13 AM
Actually they were two session_start in the file that's it doesn't work. But right now it's working. Thanks!
kdd
March 7th, 2008, 10:21 PM
session_start() has to be at the top. And don't output something before header(). :)
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.