Jump to content

PHP Sesssion help


TheUnreal

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/193087-php-sesssion-help/
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/193087-php-sesssion-help/#findComment-1017404
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/193087-php-sesssion-help/#findComment-1017450
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.