PHP: S�tik (cookie-k) - Manual
PHP  
downloads | documentation | faq | getting help | mailing lists | | php.net sites | links 
search for in the  
previousHTTP hiteles�t�s PHP-velF�jlfelt�lt�s kezel�senext
Last updated: Fri, 30 Aug 2002
view the printer friendly version or the printer friendly version with notes or change language to English | Brazilian Portuguese | Chinese | Czech | Dutch | Finnish | French | German | Italian | Japanese | Korean | Polish | Romanian | Russian | Spanish | Swedish | Turkish

Fejezet 19. S�tik (cookie-k)

A PHP t�mogatja a HTTP cookie-k kezel�s�t. A s�tik lehet�s�get adnak arra, hogy adatokat t�rolj a kliens g�pen, �gy k�vetve vagy azonos�tva a visszat�r� l�togat�kat. S�tik be�ll�t�s�ra a setcookie() f�ggv�nnyel ny�lik lehet�s�g. A s�tik r�szei a HTTP fejl�cnek, �gy a setcookie() f�gg�nyt azel�tt kell megh�vni, miel�tt b�rmilyen kimenetet k�ldesz a b�ng�sz�nek. Ez a header() f�ggv�nnyel megegyez� korl�toz�st jelent. A kimenet szab�lyoz� f�ggv�nyeket haszn�lhatod a kimenet k�sleltet�s�re addig, am�g minden s�tit �s fejl�cet elk�ldt�l.

Minden s�ti, amit a klienst�l visszakapsz, automatikusan PHP v�ltoz�v� v�lik, pont �gy, mint a GET �s a POST k�r�sekkel �rkez� adatok, felt�ve, hogy a register_globals �s variables_order php.ini be�ll�t�sok ennek megfelel�en vannak be�ll�tva. Ha t�bb �rt�ket szeretn�l adni egy s�tinek, add a szok�sos [] v�gz�d�st a s�ti nev�hez.

A PHP 4.1.0 �s k�s�bbi v�ltozataiban a $_COOKIE nev� mindenhonnan l�that� v�ltoz� mindig l�trej�n, tartalmazva a klienst�l �rkezett s�tiket. A $HTTP_COOKIE_VARS a kor�bbi verzi�kban haszn�lhat�, ha a track_vars php.ini be�ll�t�s be van kapcsolva, b�r ez a v�ltoz� nem l�tszik mindenhonnan.

R�szletesebb inform�ci�k�rt, bele�rtve a b�ng�sz� hib�kat, l�sd a setcookie() f�ggv�nyt.

User Contributed Notes
S�tik (cookie-k)
add a note about notes
[email protected]
10-Mar-2001 02:58

It might be good idea that manual mentions related standard (RFC2965,RFC2109 for cookie, Netscape's cookie spec also) and URL for the standard.

Following link is for cookie definitions:


It seems many users do not read standard definitions, unfortunately. Manual may need to be written to encourage users to read related standards.

[email protected]
13-Feb-2002 04:28

The above shown link is out of date:
try this:

where * means the number you�r looking for.

add a note about notes
previousHTTP hiteles�t�s PHP-velF�jlfelt�lt�s kezel�senext
Last updated: Fri, 30 Aug 2002
show source | credits | stats | mirror sites
Copyright © 2001, 2002 The PHP Group
All rights reserved.
This mirror generously provided by:
Last updated: Sat Aug 31 06:19:44 2002 CEST