SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: Help, I'm getting error-messages
-
Jul 12, 2003, 08:18 #1
- Join Date
- Jun 2003
- Location
- Switzerland
- Posts
- 25
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Help, I'm getting error-messages
Always when I call session_start() I'm getting the following error-messages:
Warning: Cannot send session cookie - headers already sent by (output started at /opt/root/home/ ... :9)
in /opt/root/home/ ... on line 7
Warning: Cannot send session cache limiter - headers already sent (output started at /opt/root/home/ ... :9)
in /opt/root/home/ ... on line 7
Can someone help me? Thank you in advance!
Tobias
-
Jul 12, 2003, 08:22 #2
- Join Date
- Jun 2003
- Location
- Waterloo, ON
- Posts
- 1,517
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Your script is probably outputting HTML or text before you send your session headers. In order for sessions to work, they must be sent to the browser before any other code.
You can either,
a) send your session headers at the top of your scripts, or
b) call ob_start() at the top of your code to buffer the output until the script is finished.My name is Steve, and I'm a super-villian.
-
Jul 12, 2003, 14:30 #3
- Join Date
- Jun 2003
- Location
- Switzerland
- Posts
- 25
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
that works - thank you !!!
Bookmarks