Re: sessions and unicode!

From: Date: Mon, 11 Nov 2002 17:57:00 +0000
Subject: Re: sessions and unicode!
Groups: php.windows 
Request: Send a blank email to php-windows+get-16868@lists.php.net to get a copy of this message
this has nothing to do with unicode. This is because your code is trying to set session cache-control headers too late on the login page. Check out: http://www.php.net/manual/en/function.header.php http://www.php.net/manual/en/function.session-cache-limiter.php The "output_buffering" settings in php.ini can be tweaked so that headers dont have to be set at the absolute top of the page, only in the top 4k or so. Im assuming that it works in ASCII but not Unicode because you have these buffering values set, and 4k of ASCII is twice as many characters as 4k of Unicode... frankly, its pure luck that this login page ever worked at all ;) -- Brian 'Bex' Huff bex@stellent.com Phone: 952-903-2023 Fax: 952-829-5424 > Hi > I'm designing a site with php that it has a login page. > the login page uses sessions; when I save my document normally it works , an everything is ok , but when I save it as a UTF-8 document, it says : > Warning: Cannot send session cache limiter - headers already sent (output started at ... > > what should I do to make a unicode login page that uses sessions? > > thanx

« previous php.windows (#16868) next »