Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What does this error mean? 1

Status
Not open for further replies.

TheConeHead

Programmer
Aug 14, 2002
2,106
US
Warning: session_register(): Cannot send session cookie - headers already sent by

[conehead]
 
It means you're calling session_register after you've already sent headers. Session_register needs to be called before any data is sent to the client.

Having whitespace before your opening php tags counts as sending data.

Though, if you're using a recent release of PHP you shouldn't really be using session_register, just session_start and the $_SESSION superglobal array.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top