{"id":21,"date":"2012-09-24T11:43:56","date_gmt":"2012-09-24T11:43:56","guid":{"rendered":"http:\/\/xavia360.org\/blog\/?p=21"},"modified":"2012-11-05T06:46:15","modified_gmt":"2012-11-05T06:46:15","slug":"cannot-send-session-cookie","status":"publish","type":"post","link":"http:\/\/xavia360.org\/blog\/cannot-send-session-cookie\/","title":{"rendered":"Cannot Send Session Cookie"},"content":{"rendered":"<p>I was working on a site and found these errors on when I use session_start function.<\/p>\n<p><strong>Warning<\/strong>: session_start() [<a href=\"http:\/\/longagecables.com\/admin\/function.session-start\">function.session-start<\/a>]: Cannot send session cookie &#8211; headers already sent by (output started at \/home\/content\/s\/h\/o\/shojil\/html\/longagecables\/admin\/index.php:1) in <strong>\/home\/content\/s\/h\/o\/shojil\/html\/longagecables\/admin\/index.php<\/strong> on line <strong>2<\/strong><\/p>\n<p><strong>Warning<\/strong>: session_start() [<a href=\"http:\/\/longagecables.com\/admin\/function.session-start\">function.session-start<\/a>]: Cannot send session cache limiter &#8211; headers already sent (output started at \/home\/content\/s\/h\/o\/shojil\/html\/longagecables\/admin\/index.php:1) in <strong>\/home\/content\/s\/h\/o\/shojil\/html\/longagecables\/admin\/index.php<\/strong> on line <strong>2<\/strong><\/p>\n<p><strong><\/strong>So I had already done much work on php and used this function almost\u00a0hundred\u00a0times. But this time I could not find the reason why it is sending warning message I google this problem but many sites suggest to put the seesion_start at top of file which I already know.<\/p>\n<p>Then I found its solution from php.net site when I read all the solutions one solution was the correct solution which solved my problem on this page\u00a0<a href=\"http:\/\/php.net\/manual\/en\/function.session-start.php\">http:\/\/php.net\/manual\/en\/function.session-start.php<\/a>.<\/p>\n<blockquote><p>It was to make my editor ASCII from UTF-8 I did this and my error is resolved.<\/p><\/blockquote>\n<p>So I though to share this solution with all my visitors. And also to save this solution in my blog that it will not waste my time again.<\/p>\n<p><span class='st_facebook_vcount' st_title='Cannot Send Session Cookie' st_url='http:\/\/xavia360.org\/blog\/cannot-send-session-cookie\/' displayText='facebook'><\/span><span class='st_twitter_vcount' st_title='Cannot Send Session Cookie' st_url='http:\/\/xavia360.org\/blog\/cannot-send-session-cookie\/' displayText='twitter'><\/span><span class='st_linkedin_vcount' st_title='Cannot Send Session Cookie' st_url='http:\/\/xavia360.org\/blog\/cannot-send-session-cookie\/' displayText='linkedin'><\/span><span class='st_email_vcount' st_title='Cannot Send Session Cookie' st_url='http:\/\/xavia360.org\/blog\/cannot-send-session-cookie\/' displayText='email'><\/span><span class='st_sharethis_vcount' st_title='Cannot Send Session Cookie' st_url='http:\/\/xavia360.org\/blog\/cannot-send-session-cookie\/' displayText='sharethis'><\/span><span class='st_fblike_vcount' st_title='Cannot Send Session Cookie' st_url='http:\/\/xavia360.org\/blog\/cannot-send-session-cookie\/' displayText='fblike'><\/span><span class='st_plusone_vcount' st_title='Cannot Send Session Cookie' st_url='http:\/\/xavia360.org\/blog\/cannot-send-session-cookie\/' displayText='plusone'><\/span><span class='st_pinterest_vcount' st_title='Cannot Send Session Cookie' st_url='http:\/\/xavia360.org\/blog\/cannot-send-session-cookie\/' displayText='pinterest'><\/span><\/p>","protected":false},"excerpt":{"rendered":"<p>I was working on a site and found these errors on when I use session_start function. Warning: session_start() [function.session-start]: Cannot send session cookie &#8211; headers [&hellip;]<\/p>\n<p><span class='st_facebook_vcount' st_title='Cannot Send Session Cookie' st_url='http:\/\/xavia360.org\/blog\/cannot-send-session-cookie\/' displayText='facebook'><\/span><span class='st_twitter_vcount' st_title='Cannot Send Session Cookie' st_url='http:\/\/xavia360.org\/blog\/cannot-send-session-cookie\/' displayText='twitter'><\/span><span class='st_linkedin_vcount' st_title='Cannot Send Session Cookie' st_url='http:\/\/xavia360.org\/blog\/cannot-send-session-cookie\/' displayText='linkedin'><\/span><span class='st_email_vcount' st_title='Cannot Send Session Cookie' st_url='http:\/\/xavia360.org\/blog\/cannot-send-session-cookie\/' displayText='email'><\/span><span class='st_sharethis_vcount' st_title='Cannot Send Session Cookie' st_url='http:\/\/xavia360.org\/blog\/cannot-send-session-cookie\/' displayText='sharethis'><\/span><span class='st_fblike_vcount' st_title='Cannot Send Session Cookie' st_url='http:\/\/xavia360.org\/blog\/cannot-send-session-cookie\/' displayText='fblike'><\/span><span class='st_plusone_vcount' st_title='Cannot Send Session Cookie' st_url='http:\/\/xavia360.org\/blog\/cannot-send-session-cookie\/' displayText='plusone'><\/span><span class='st_pinterest_vcount' st_title='Cannot Send Session Cookie' st_url='http:\/\/xavia360.org\/blog\/cannot-send-session-cookie\/' displayText='pinterest'><\/span><\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[15,17,18,22,13,14,16,21,19,20],"_links":{"self":[{"href":"http:\/\/xavia360.org\/blog\/wp-json\/wp\/v2\/posts\/21"}],"collection":[{"href":"http:\/\/xavia360.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/xavia360.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/xavia360.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/xavia360.org\/blog\/wp-json\/wp\/v2\/comments?post=21"}],"version-history":[{"count":6,"href":"http:\/\/xavia360.org\/blog\/wp-json\/wp\/v2\/posts\/21\/revisions"}],"predecessor-version":[{"id":27,"href":"http:\/\/xavia360.org\/blog\/wp-json\/wp\/v2\/posts\/21\/revisions\/27"}],"wp:attachment":[{"href":"http:\/\/xavia360.org\/blog\/wp-json\/wp\/v2\/media?parent=21"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/xavia360.org\/blog\/wp-json\/wp\/v2\/categories?post=21"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/xavia360.org\/blog\/wp-json\/wp\/v2\/tags?post=21"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}