Cannot send session cookie
-
Hi,
I’m trying to make a cookie sesion manually in php but when I write php code in one page, I have this error:Warning: session_start(): Cannot send session cookie – headers already sent by (output started at C:\xampp\htdocs\sunwaychessfestival\wp-content\plugins\sitepress-multilingual-cms\inc\language-switcher.php:1038) in C:\xampp\htdocs\sunwaychessfestival\wp-content\plugins\shortcode-exec-php\shortcode-exec-php-class.php(895) : eval()’d code on line 1
Warning: session_start(): Cannot send session cache limiter – headers already sent (output started at C:\xampp\htdocs\sunwaychessfestival\wp-content\plugins\sitepress-multilingual-cms\inc\language-switcher.php:1038) in C:\xampp\htdocs\sunwaychessfestival\wp-content\plugins\shortcode-exec-php\shortcode-exec-php-class.php(895) : eval()’d code on line 1
I read and I think this is because session_start has to be in the first line of any php code, and this happens because firstly there is the function.php file.
But I don’t know how to fix that cause I only need the session_start in 3 pages, so I want to put in this pages the code.I hope somebody can help me with that.
Thank you,Gemma
- The topic ‘Cannot send session cookie’ is closed to new replies.