PHP Classes

Warning: session_start() [function.session-start]

Recommend this page to a friend!

      PHP OAuth Library  >  PHP OAuth Library package blog  >  How to Implement PHP ...  >  All threads  >  Warning: session_start()...  >  (Un) Subscribe thread alerts  
Subject:Warning: session_start()...
Summary:Warning: session_start() [function.session-start]
Messages:3
Author:alphonse tan
Date:2014-10-02 16:49:56
 

  1. Warning: session_start()...   Reply   Report abuse  
Picture of alphonse tan alphonse tan - 2014-10-02 16:49:56
i did not encounter a "Warning: session_start() [function.session-start]" in localhost.. but when i uploaded the package on a site..

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/etnmulti/public_html/xxxxxx/xxxxx/auth/http.php:1) in /home/etnmulti/public_html/xxxxxx/xxxxx//auth/oauth_client.php on line 1172

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/etnmulti/public_html/xxxxxx/xxxxx/aauth/http.php:1) in /home/etnmulti/public_html/xxxxxx/xxxxx/aauth/oauth_client.php on line 1172

Warning: Cannot modify header information - headers already sent by (output started at /home/etnmulti/public_html/xxxxxx/xxxxx/auth/http.php:1) in /home/etnmulti/public_html/xxxxxx/xxxxx/auth/oauth_client.php on line 1059

Warning: Cannot modify header information - headers already sent by (output started at /home/etnmulti/public_html/xxxxxx/xxxxx/auth/http.php:1) in /home/etnmulti/public_html//xxxxxx/xxxxx/auth/oauth_client.php on line 1060

but great help though.. thanks..

  2. Re: Warning: session_start()...   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2014-10-02 19:32:03 - In reply to message 1 from alphonse tan
It seems you have an altered version of the http.php file. It may have some characters in the beginning that are starting the page output inadvertently and prevent HTTP headers to be sent. Make sure you use the original http.php class script to avoid the problem.

  3. Re: Warning: session_start()...   Reply   Report abuse  
Picture of alphonse tan alphonse tan - 2014-10-02 23:35:56 - In reply to message 2 from Manuel Lemos
You're right.. hmmm.. but i did not change anything with the http.php.. anyway i just redownloaded the file and replaced it and it works fine.. thank you.. :)