TheUnreal Posted February 23, 2010 Share Posted February 23, 2010 Hello. I have problem with PHP and SESSION. Im trying to use it but I have always two errors when trying to do it: Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\AppServ\www\index.php:1) in C:\AppServ\www\index.php on line 2 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\AppServ\www\index.php:1) in C:\AppServ\www\index.php on line 2 Im using UTF-8 format file. With ANSI,It's working - But then I can't write in Hebrew. Help? Yes, I tried to PUT THE SESSION START AT THE TOP OF THE PAGE. Any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/193087-php-sesssion-help/ Share on other sites More sharing options...
PFMaBiSmAd Posted February 23, 2010 Share Posted February 23, 2010 Save your file(s) without the BOM (Byte Order Mark) characters. Quote Link to comment https://forums.phpfreaks.com/topic/193087-php-sesssion-help/#findComment-1016895 Share on other sites More sharing options...
TheUnreal Posted February 24, 2010 Author Share Posted February 24, 2010 Save your file(s) without the BOM (Byte Order Mark) characters. It make all my language like I saved it as ANSI. Quote Link to comment https://forums.phpfreaks.com/topic/193087-php-sesssion-help/#findComment-1017395 Share on other sites More sharing options...
PFMaBiSmAd Posted February 24, 2010 Share Posted February 24, 2010 If you saved the file as a UTF-8 encoded file without the BOM characters, it should have worked. You would need to attach the resulting file to a post so that someone could determine if the problem is with the file or somewhere else. Best guess is that your editor does not correctly handle saving the a file without the BOM characters and you would need to use a different programming editor. Quote Link to comment https://forums.phpfreaks.com/topic/193087-php-sesssion-help/#findComment-1017404 Share on other sites More sharing options...
TheUnreal Posted February 24, 2010 Author Share Posted February 24, 2010 If you saved the file as a UTF-8 encoded file without the BOM characters, it should have worked. You would need to attach the resulting file to a post so that someone could determine if the problem is with the file or somewhere else. Best guess is that your editor does not correctly handle saving the a file without the BOM characters and you would need to use a different programming editor. I tried NOTEPAD++ and DreamWeaver. When Im saving as UTF-8 WITHOUT BOM in notepad++ I get my website language like this: ׳×׳—׳™׳׳™׳× Instead of hebrew. Quote Link to comment https://forums.phpfreaks.com/topic/193087-php-sesssion-help/#findComment-1017450 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.