SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: Warning: session_start()
-
May 14, 2009, 10:57 #1
- Join Date
- Aug 2006
- Location
- Earth
- Posts
- 559
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Warning: session_start()
I'm a bit confused......
I've had a site up and running properly. Than I had to delete the whole content. I've uploaded the SAME content again and now there's a line at the top :
Code:Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/include/form.php:160) in /var/www/include/session.php on line 41
What went wrong? Server side issue?
Full time ADMIN - art community
Part time coder - dsign
-
May 14, 2009, 11:10 #2
- Join Date
- May 2006
- Location
- Lancaster University, UK
- Posts
- 7,062
- Mentioned
- 2 Post(s)
- Tagged
- 0 Thread(s)
Session_Start() needs to be before ANY output - including HTML, text, whitespace, anything.
If you look in the HTML sourcecode, you'll see where abouts that error is. You'll probably see that it's after something. You need to move that session_start so that it is before any output.Jake Arkinstall
"Sometimes you don't need to reinvent the wheel;
Sometimes its enough to make that wheel more rounded"-Molona
-
May 14, 2009, 11:18 #3
- Join Date
- Aug 2006
- Location
- Earth
- Posts
- 559
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
okay, that's clear to me. BUT how can happen that everything is working fine and then the SAME content and this Warning?
Furthermore : I have the EXACTLY SAME site at another server where it works perfectly without any warnings....Last edited by dujmovicv; May 14, 2009 at 11:54.
Full time ADMIN - art community
Part time coder - dsign
Bookmarks