Posted by windandwaves on 11/06/05 03:49
Berimor wrote:
......
> session_start() should first in output to browser. Try to place
> thesetcookie() after session_start().
Ok, interesting ;-) Can you explain me why that is? Just so that I
understand.. Will do
>
>
>> //function to include session ID in case they do not accept cookies
>> function sid($withamp) {
>> if($_COOKIE["CookieTest"] == "t") {
>> return '';
>> }
>> $s = session_id();
>> if($s) {
>> if($withamp) {
>> $v = '&';
>> }
>> $v .= 'PHPSESSID='.$s;
>> return $v;
>> }
>> }
>> /* end of startup.php */
Navigation:
[Reply to this message]
|