You are here: Re: session IDs and the like « PHP Programming Language « IT news, forums, messages
Re: session IDs and the like

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация