dprasad
asked on
sessions
I'm trying to start a session for use on a number of pages. I get this error:
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /var/www/html/dc/keyworded itor.php:8 ) in /var/www/html/dc/keyworded itor.php on line 15
What am I missing??
TIA Dinesh
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /var/www/html/dc/keyworded
What am I missing??
TIA Dinesh
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
must go before ANY output which includes:
- new lines or spaces before the opening php tag (<?php)
- html tags
- php output (including echo and print).
In an ideal situation session_start(); should be placed at the very top of your file before anything else