cvs: phpdoc /hu/functions session.xml
| From: | Gabor Hojtsy | Date: | Fri, 22 Mar 2002 11:14:44 +0000 |
| Subject: | cvs: phpdoc /hu/functions session.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969343293@lists.php.net to get a copy of this message | ||
goba Fri Mar 22 06:14:44 2002 EDT
Modified files:
/phpdoc/hu/functions session.xml
Log:
Session translation ready ;)
Index: phpdoc/hu/functions/session.xml diff -u phpdoc/hu/functions/session.xml:1.3 phpdoc/hu/functions/session.xml:1.4 --- phpdoc/hu/functions/session.xml:1.3 Sun Mar 17 10:49:25 2002 +++ phpdoc/hu/functions/session.xml Fri Mar 22 06:14:44 2002 @@ -644,18 +644,18 @@ <refentry id="function.session-module-name"> <refnamediv> <refname>session_module_name</refname> - <refpurpose>Get and/or set the current session module</refpurpose> + <refpurpose>Az aktuális munkamenet modul lekérdezése / beállítása</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>Leírás</title> <methodsynopsis> <type>string</type><methodname>session_module_name</methodname> <methodparam choice="opt"><type>string</type><parameter>module</parameter></methodparam> </methodsynopsis> <para> - <function>session_module_name</function> returns the name of the - current session module. If <parameter>module</parameter> is - specified, that module will be used instead. + A <function>session_module_name</function> visszatér az aktuális + munkamenet modul nevével. Ha a <parameter>module</parameter> + paramétert is megadod, a modult a megadottra állítja át. </para> </refsect1> </refentry> @@ -663,24 +663,26 @@ <refentry id="function.session-save-path"> <refnamediv> <refname>session_save_path</refname> - <refpurpose>Get and/or set the current session save path</refpurpose> + <refpurpose>Az aktuális munkamenet mentési könyvtár lekérdezése / beállítása</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>Leírás</title> <methodsynopsis> <type>string</type><methodname>session_save_path</methodname> <methodparam choice="opt"><type>string</type><parameter>path</parameter></methodparam> </methodsynopsis> <para> - <function>session_save_path</function> returns the path of the current - directory used to save session data. If <parameter>path</parameter> - is specified, the path to which data is saved will be changed. + A <function>session_save_path</function> visszatér az aktuális munkamenet + mentési könyvtárral, ahol a PHP a munkamenet adatokat tárolja. Ha a + <parameter>path</parameter> paraméter meg van adva, a mentési könyvtár + megváltozik. <note> <para> - On some operating systems, you may want to specify a path on a - filesystem that handles lots of small files efficiently. For - example, on Linux, reiserfs may provide better performance than - ext2fs. + Néhány operációs renszeren lehetõség van arra, hogy olyan + elérési utat adjál meg, ami egy kis állományokat hatékonyabban + kezelõ állományrendszeren van. Linuxon például a reiserfs + állományrendszer jobb teljesítménnyel kezeli a PHP munkamenet + állományait, mint az ext2fs. </para> </note> </para> @@ -690,23 +692,23 @@ <refentry id="function.session-id"> <refnamediv> <refname>session_id</refname> - <refpurpose>Get and/or set the current session id</refpurpose> + <refpurpose>Az aktuális munkamenet azonosító lekérdezése / beállítása</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>Leírás</title> <methodsynopsis> <type>string</type><methodname>session_id</methodname> <methodparam choice="opt"><type>string</type><parameter>id</parameter></methodparam> </methodsynopsis> <para> - <function>session_id</function> returns the session id for the - current session. If <parameter>id</parameter> is specified, it - will replace the current session id. + A <function>session_id</function> visszatér az aktuális munkamenet + azonosítójával. Ha az <parameter>id</parameter> paramétert is megadod, + akkor az az érték lesz az új munkamenet azonosító. </para> <para> - The constant <systemitem>SID</systemitem> can also be used to - retrieve the current name and session id as a string suitable for - adding to URLs. + A <systemitem>SID</systemitem> konstans is használható az aktuális + munkemenet név és azonosító lekérdezésére, ha URL-be szeretnéd + tenni az azonosítót. </para> </refsect1> </refentry> @@ -715,88 +717,95 @@ <refnamediv> <refname>session_register</refname> <refpurpose> - Register one or more variables with the current session + Egy vagy több változó bejegyzése munkamenet változókként </refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>Leírás</title> <methodsynopsis> <type>bool</type><methodname>session_register</methodname> <methodparam><type>mixed</type><parameter>name</parameter></methodparam> <methodparam choice="opt"><type>mixed</type><parameter>...</parameter></methodparam> </methodsynopsis> <para> - <function>session_register</function> accepts a variable number of - arguments, any of which can be either a string holding the name of a - variable or an array consisting of variable names or other arrays. For - each name, <function>session_register</function> registers the global - variable with that name in the current session. + A <function>session_register</function> függvényt tetszõleges számú + paraméterrel hívhatod. Bármely paraméter lehet egy karaktersorozat, + ami egy változó neve, vagy egy tömb, ami változóneveket vagy újabb + tömböket tartalmaz. A <function>session_register</function> minden + megadott nevû globális változót bejegyzi az aktuális munkamenet + változójaként. </para> <caution> <para> - This registers a <emphasis>global</emphasis> variable. If you want to - register a session variable inside a function, you need to make sure to - make it global using <function>global</function> or use the session - arrays as noted below. + Ez a függvény <emphasis>globális</emphasis> változók regisztrálására + használható. Ha egy függvényen belül szeretnél munkamenet változót + bejegyezni, elõbb globálissá kell tenned a <function>global</function> + kulcsszó használatával, vagy a munkamenet tömböket kell használnod, + ahogy lentebb leírjuk. </para> </caution> <caution> <para> - If you are using - <varname>$HTTP_SESSION_VARS</varname>/<varname>$_SESSION</varname>, - do not use <function>session_register</function>, - <function>session_is_registered</function> and - <function>session_unregister</function>. + Ha a + <varname>$HTTP_SESSION_VARS</varname> vagy <varname>$_SESSION</varname> + tömböket használod, ne használd a <function>session_register</function>, + <function>session_is_registered</function> és + <function>session_unregister</function> függvényeket változók + bejegyzésére! </para> </caution> <para> - This function returns &true; when all of the variables are successfully - registered with the session. + Ez a függvény &true; értékkel tér vissza, ha minden megadott nevû + változó sikeresen bejegyzésre került a munkamenetben. </para> <para> - If <function>session_start</function> was not called before this function - is called, an implicit call to <function>session_start</function> with no - parameters will be made. + Ha a <function>session_start</function> függvényt nem hívtad meg + ennek a függvénynek a hívása elõtt, a + <function>session_register</function> meghívásával a PHP közvetve + automatikusan meghívja a <function>session_start</function> + függvényt paraméterek nélkül. </para> <para> - You can also create a session variable by simply setting the - appropriate member of the <varname>$HTTP_SESSION_VARS</varname> - or <varname>$_SESSION</varname> (PHP >= 4.1.0) array. + Egyszerûbben jegyezheted be a munkamenet változókat, ha a + <varname>$HTTP_SESSION_VARS</varname> vagy + <varname>$_SESSION</varname> (PHP >= 4.1.0) asszociatív + tömbök egyikében hozol létre egy új kulcsot és értéket. <informalexample> <programlisting role="php"> <![CDATA[ -$barney = "A big purple dinosaur."; +$barney = "Egy bíborszínû dinoszaurusz."; session_register("barney"); -$HTTP_SESSION_VARS["zim"] = "An invader from another planet."; +$HTTP_SESSION_VARS["zim"] = "Támadó egy másik bolygóról."; -# the auto-global $_SESSION array was introduced in PHP 4.1.0 -$_SESSION["spongebob"] = "He's got square pants."; +# A szuperglobális $_SESSION tömb a PHP 4.1.0 verzió óta használható +$_SESSION["spongebob"] = "Szögletes nadrágja van."; ]]> </programlisting> </informalexample> </para> <note> <para> - It is not currently possible to register resource variables in a - session. For example, you can not create a connection to a - database and store the connection id as a session variable and - expect the connection to still be valid the next time the - session is restored. PHP functions that return a resource are - identified by having a return type of - <literal>resource</literal> in their function definitions. A - list of functions that return resources are available in the - <link linkend="resource">resource types</link> appendix. - </para> - <para> - If <varname>$_SESSION</varname> (or - <varname>$HTTP_SESSION_VARS</varname> for PHP 4.0.6 or less) is - used, assign variable to - <varname>$_SESSION</varname>. i.e. $_SESSION['var'] = 'ABC'; + Jelenleg nem lehetséges erõforrások bejegyzése munkamenetekben. + Nem lehetséges például egy adatbázis kapcsolat létrehozása, + regisztrálása a munkamenetben, és a következõ munkamenet + folytatáskor az adatbázis kapcsolat használata. Az + erõforrásokkal visszatérõ függvények arról ismerhetõek fel, + hogy a leírásukban <literal>resource</literal> a megadott + visszatérési típus. Az erõforrásokkal visszatérõ függvények + listája megtalálható az <link linkend="resource">erõforrás + típusok</link> függelékben. + </para> + <para> + A <varname>$_SESSION</varname> (vagy + <varname>$HTTP_SESSION_VARS</varname> PHP 4.0.6 vagy korábbi + verziókban) használatakor új asszociatív indexet kell létrehozni + a <varname>$_SESSION</varname> tömbben. Például + $_SESSION['valtozo'] = 'ABC'; </para> </note> <para> - See also <function>session_is_registered</function> and + Lásd még <function>session_is_registered</function> és <function>session_unregister</function>. </para> </refsect1> @@ -806,47 +815,48 @@ <refnamediv> <refname>session_unregister</refname> <refpurpose> - Unregister a variable from the current session + Munkamenet változó törlése a munkamenetbõl </refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>Leírás</title> <methodsynopsis> <type>bool</type><methodname>session_unregister</methodname> <methodparam><type>string</type><parameter>name</parameter></methodparam> </methodsynopsis> <para> - <function>session_unregister</function> unregisters (forgets) - the global variable named <parameter>name</parameter> from the - current session. + A <function>session_unregister</function> törli (elfelejti) + a <parameter>name</parameter> paraméterben megadott nevû + globális munkamenet változót, az aktuális munkamenetbõl. </para> <para> - This function returns &true; when the variable is successfully - unregistered from the session. + Ez a függvény &true; értékkel tér vissza, ha a változó törlése + sikeresen megtörtént az aktuális munkamenetet érintõen. </para> <note> <para> - If <varname>$_SESSION</varname> (or - <varname>$HTTP_SESSION_VARS</varname> for PHP 4.0.6 or less) is - used, use <function>unset</function> to unregister a session - variable. + A <varname>$_SESSION</varname> (vagy + <varname>$HTTP_SESSION_VARS</varname> PHP 4.0.6 vagy korábbi + verziókban) használatakor az <function>unset</function> + függvényt kell használni munkamenet változó törlésére, + paraméterként átadva a tömb változóhoz tartozó elemét. </para> </note> <caution> <para> - This function doesn't unset the corresponding global variable for - <parameter>name</parameter>, it only prevents the variable from being - saved as part of the session. You must call <function>unset</function> - to remove the corresponding global variable. + Ez a függvény nem törli a munkamenet változóhoz tartozó globális + <parameter>name</parameter> nevû változót, csak megszünteti a + változó és a munkamenet kapcsolatát. Meg kell hívnod az + <function>unset</function> függvényt a változóra, ha törölni + szeretnéd a globális változót is. </para> </caution> <caution> <para> - If you are using - <varname>$HTTP_SESSION_VARS</varname>/<varname>$_SESSION</varname>, - do not use <function>session_register</function>, - <function>session_is_registered</function> and - <function>session_unregister</function>. + A <varname>$HTTP_SESSION_VARS</varname> vagy <varname>$_SESSION</varname> + tömbök használata esetén ne hívd meg a <function>session_register</function>, + <function>session_is_registered</function> vagy + <function>session_unregister</function> függvényeket. </para> </caution> </refsect1> @@ -856,25 +866,26 @@ <refnamediv> <refname>session_unset</refname> <refpurpose> - Free all session variables + Minden munkamenet változó felszabadítása </refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>Leírás</title> <methodsynopsis> <type>void</type><methodname>session_unset</methodname> <void/> </methodsynopsis> <para> - The <function>session_unset</function> function free's all session variables - currently registered. + A <function>session_unset</function> függvény minden éppen + bejegyzett munkamenet változót felszabadít. </para> <note> <para> - If <varname>$_SESSION</varname> (or - <varname>$HTTP_SESSION_VARS</varname> for PHP 4.0.6 or less) is - used, use <function>unset</function> to unregister session - variable. i.e. $_SESSION = array(); + Ha a <varname>$_SESSION</varname> (vagy + <varname>$HTTP_SESSION_VARS</varname> PHP 4.0.6 vagy korábbi verziókban) + tömböket használod, az <function>unset</function> függvénnyel tudsz + egyes változókat törlni. A teljes törléshez használd a + $_SESSION = array(); sort. </para> </note> </refsect1> @@ -884,35 +895,34 @@ <refnamediv> <refname>session_is_registered</refname> <refpurpose> - Find out if a variable is registered in a session + Egy változó bejegyzettségét ellenõrzi </refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>Leírás</title> <methodsynopsis> <type>bool</type><methodname>session_is_registered</methodname> <methodparam><type>string</type><parameter>name</parameter></methodparam> </methodsynopsis> <para> - <function>session_is_registered</function> returns &true; if there - is a variable with the name <parameter>name</parameter> - registered in the current session. + A <function>session_is_registered</function> &true; értékkel + tér vissza, ha a <parameter>name</parameter> nevû változó + be van jegyezve az aktuális munkamenet változójaként. </para> <note> <para> - If <varname>$_SESSION</varname> (or - <varname>$HTTP_SESSION_VARS</varname> for PHP 4.0.6 or less) is - used, use <function>isset</function> to check a variable is - registered in <varname>$_SESSION</varname>. + Ha a <varname>$_SESSION</varname> (vagy + <varname>$HTTP_SESSION_VARS</varname> PHP 4.0.6 vagy korábbi verziókban) + tömböket használod, az <function>isset</function> függvény hívásával + derítheted ki, hogy a változó be van-e jegyezve a munkamenetbe. </para> </note> <caution> <para> - If you are using - <varname>$HTTP_SESSION_VARS</varname>/<varname>$_SESSION</varname>, - do not use <function>session_register</function>, - <function>session_is_registered</function> and - <function>session_unregister</function>. + A <varname>$HTTP_SESSION_VARS</varname> vagy <varname>$_SESSION</varname> + tömbök használata esetén ne hívd meg a <function>session_register</function>, + <function>session_is_registered</function> vagy + <function>session_unregister</function> függvényeket. </para> </caution> </refsect1> @@ -922,39 +932,39 @@ <refnamediv> <refname>session_get_cookie_params</refname> <refpurpose> - Get the session cookie parameters + Lekérdezi a munkamenet süti paramétereit </refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>Leírás</title> <methodsynopsis> <type>array</type><methodname>session_get_cookie_params</methodname> <void/> </methodsynopsis> <para> - The <function>session_get_cookie_params</function> function returns an - array with the current session cookie information, the array contains - the following items: + A <function>session_get_cookie_params</function> visszaadja a munkamanet + süti paramétereit egy asszociatív tömbben. Ez a tömb a következõ elemeket + tartalmazza: <itemizedlist> <listitem> <simpara> - "lifetime" - The lifetime of the cookie. + "lifetime" - A süti élettartalma. </simpara> </listitem> <listitem> <simpara> - "path" - The path where information is stored. + "path" - A süti elérési út korlátozása. </simpara> </listitem> <listitem> <simpara> - "domain" - The domain of the cookie. + "domain" - A süti domain név korlátozása. </simpara> </listitem> <listitem> <simpara> - "secure" - The cookie should only be sent over secure connections. - (This item was added in PHP 4.0.4.) + "secure" - A süti csak biztonságos kapcsolaton keresztül + közlekedhet. (Ez a PHP 4.0.4 verzió óta lehetséges.) </simpara> </listitem> </itemizedlist> @@ -966,11 +976,11 @@ <refnamediv> <refname>session_set_cookie_params</refname> <refpurpose> - Set the session cookie parameters + A munkamenet süti paramétereit állítja be </refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>Leírás</title> <methodsynopsis> <type>void</type><methodname>session_set_cookie_params</methodname> <methodparam><type>int</type><parameter>lifetime</parameter></methodparam> @@ -978,8 +988,8 @@ <methodparam choice="opt"><type>string</type><parameter>domain</parameter></methodparam> </methodsynopsis> <para> - Set cookie parameters defined in the php.ini file. The effect of this - function only lasts for the duration of the script. + A php.ini állományban definiált süti paraméterek felülírása. Ezen + függvény hatása csak az aktuális program futásának végéig tart. </para> </refsect1> </refentry> @@ -987,18 +997,18 @@ <refentry id="function.session-decode"> <refnamediv> <refname>session_decode</refname> - <refpurpose>Decodes session data from a string</refpurpose> + <refpurpose>Visszakódolja a munkamenet adatokat egy karaktersorozatból</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>Leírás</title> <methodsynopsis> <type>bool</type><methodname>session_decode</methodname> <methodparam><type>string</type><parameter>data</parameter></methodparam> </methodsynopsis> <para> - <function>session_decode</function> decodes the session data in - <parameter>data</parameter>, setting variables stored in the - session. + A <function>session_decode</function> visszakódolja a munkamenet + adatokat a <parameter>data</parameter> karaktersorozatból, beállítva + a munkamenetben lévõ változókat. </para> </refsect1> </refentry> @@ -1007,18 +1017,18 @@ <refnamediv> <refname>session_encode</refname> <refpurpose> - Encodes the current session data as a string + Elkódolja a munkamenet adatokat egy karaktersorozatba </refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>Leírás</title> <methodsynopsis> <type>string</type><methodname>session_encode</methodname> <void/> </methodsynopsis> <para> - <function>session_encode</function> returns a string with the - contents of the current session encoded within. + A <function>session_encode</function> visszatér az aktuális + munkamenet adatainak egy karaktersorozatba kódolt változatával. </para> </refsect1> </refentry> @@ -1027,56 +1037,61 @@ <refnamediv> <refname>session_set_save_handler</refname> <refpurpose> - Sets user-level session storage functions + Felhasználói szintû munkamenet tároló függvényeket állít be </refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>Leírás</title> <methodsynopsis> <type>void</type><methodname>session_set_save_handler</methodname> <methodparam><type>string</type><parameter>open</parameter></methodparam><methodparam><type>string</type><parameter>close</parameter></methodparam><methodparam><type>string</type><parameter>read</parameter></methodparam><methodparam><type>string</type><parameter>write</parameter></methodparam><methodparam><type>string</type><parameter>destroy</parameter></methodparam><methodparam><type>string</type><parameter>gc</parameter></methodparam> </methodsynopsis> <para> - <function>session_set_save_handler</function> sets the user-level - session storage functions which are used for storing and - retrieving data associated with a session. This is most useful - when a storage method other than those supplied by PHP sessions - is preferred. i.e. Storing the session data in a local database. + A <function>session_set_save_handler</function> beállítja a + programozó által PHP-ben megírt munkamenet tároló függvényeket. + Ezeket használja majd a PHP a munkamenet adatainak tárolására + és lekérdezésére. Ez a lehetõség akkor hasznos, ha a PHP által + kínált módszerek nem megfelelõek. Másfajta tárolás lehetséges + az adatok lokális adatbázisban történõ rögzítésével. </para> <note> <para> - You must set the configuration option - <parameter>session.save_handler</parameter> to - <parameter>user</parameter> in your php.ini file for - <function>session_set_save_handler</function> to take effect. + A php.ini <parameter>session.save_handler</parameter> beállítását + mindenképpen <parameter>user</parameter> értékre kell állítanod, + hogy a <function>session_set_save_handler</function> függvény + hívásának legyen hatása. </para> </note> <note> <para> - The "write" handler is not executed until after the output - stream is closed. Thus, output from debugging statements in the - "write" handler will never be seen in the browser. If debugging - output is necessary, it is suggested that the debug output be - written to a file instead. + Az írás kezelõ csak a PHP program kimenetének elküldése + után hívódik meg. Ezért az írás kezelõben a böngészõ + számára kiírt, tipikusan hibakeresést szolgáló adatok + nem lesznek sohasem láthatóak a böngészõben. Ha a + hibakereséshez adatok kiírása szükséges, javasolt + napló állomány használata erre a célra. </para> </note> <para> - The following example provides file based session - storage similar to the PHP sessions default save handler - <parameter>files</parameter>. This example could easily be - extended to cover database storage using your favorite PHP - supported database engine. + Az alább látható példa állmoány alapú munkamenet adat + tárolást valósít meg, hasonlóan a PHP alapértelmezésû + <parameter>files</parameter> kezelõjéhez. Ez a példa + könnyen kiterjeszthetõ egy adatbázis tárolást alkalmazó + kezelõvé, felhasználva a kedvenc adatbáziskezelõd + függvényeit. </para> <para> - Read function must return string value always to make save - handler work as expected. Return empty string if there is no data - to read. Return values from other handlers are converted to - boolean expression. TRUE for success, FALSE for failure. + Az olvasó függvénynek mindig karaktersorozattal kell + visszatérnie, hogy a mentést végzõ kezelõ helyesen mûködjön. + Üres karaktersorozattal kell visszatérni, ha nincs + adat, amit olvasni lehetne. Más kezelõk visszatérési + értékei logikai típusúvá alakulnak. Igaz értéket + kell visszaadni siker estén, hamisat hiba esetén. </para> <para> <example> <title> - <function>session_set_save_handler</function> example + <function>session_set_save_handler</function> példa </title> <programlisting role="php"> <![CDATA[ @@ -1101,7 +1116,7 @@ $sess_data = fread($fp, filesize($sess_file)); return($sess_data); } else { - return(""); // Must return "" here. + return(""); // Itt mindenképpen "" a visszatérési érték. } } @@ -1126,8 +1141,8 @@ } /********************************************* - * WARNING - You will need to implement some * - * sort of garbage collection routine here. * + * FIGYELEM - Itt mindenképpen meg kell * + * valósítani valamiféle szemétgyûjtést. * *********************************************/ function gc ($maxlifetime) { return true; @@ -1137,7 +1152,7 @@ session_start(); -// proceed to use sessions normally +// Ezután hagyományosan használható a munkamenet ?> ]]> @@ -1150,59 +1165,64 @@ <refentry id="function.session-cache-limiter"> <refnamediv> <refname>session_cache_limiter</refname> - <refpurpose>Get and/or set the current cache limiter</refpurpose> + <refpurpose>Az aktuális munkamenet cache korlátozás lekérdezése / beállítása</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>Leírás</title> <methodsynopsis> <type>string</type><methodname>session_cache_limiter</methodname> <methodparam choice="opt"><type>string</type><parameter>cache_limiter</parameter></methodparam> </methodsynopsis> <para> - <function>session_cache_limiter</function> returns the name of the - current cache limiter. If <parameter>cache_limiter</parameter> is - specified, the name of the current cache limiter is changed to the - new value. - </para> - <para> - The cache limiter controls the cache control HTTP headers sent to the - client. These headers determine the rules by which the page content - may be cached. Setting the cache limiter to <literal>nocache</literal>, - for example, would disallow any client-side caching. A value of - <literal>public</literal>, however, would permit caching. It can also - be set to <literal>private</literal>, which is slightly more restrictive - than <literal>public</literal>. - </para> - <para> - In <literal>private</literal> mode, Expire header sent to the - client, may cause confusion for some browser including Mozilla. - You can avoid this problem with - <literal>private_no_expire</literal> mode. Expire header is never - sent to the client in this mode. + A <function>session_cache_limiter</function> visszatér az aktuális + munkamenet cache korlátozás értékével. Ha a + <parameter>cache_limiter</parameter> paraméter is meg van adva, + a cache korlátozás a megadott értékre változik. + </para> + <para> + A cache korlátozás szabályozza a cache befolyásoló HTTP fejléceket, + amiket a PHP a böngészõnek küld. Ezek a fejlécek szabályozzák, + hogy a munkameneteket használó oldalak hogyan jelenjenek meg + a gyorsítótárakban. Ha a <literal>nocache</literal> értéket állítod + be, minden kliens oldali cache-elést letiltasz. A + <literal>public</literal> értékkel éppen ellenkezõleg engedélyezed + a cache-elést. Ezen kívül még a <literal>private</literal> értéket + is meg tudod adni, ami valamivel korlátozottabb, mint a + <literal>public</literal>. + </para> + <para> + <literal>private</literal> módban az Expire fejléc, amit a + böngészõ kap gondot okozhat a feldolgozásban néhány böngészõnél, + mint pl. a Mozilla. Ezt a problémát a + <literal>private_no_expire</literal> mód bekapcsolásával tudod + orvosolni. Az Expire fejlécet ebben a módban nem küldi el a PHP + a kliensnek. </para> <note> <para> - <literal>private_no_expire</literal> was added in PHP 4.2.0dev. + A <literal>private_no_expire</literal> a 4.2.0dev verzióban került + a lehetõségek közé. </para> </note> <para> - The cache limiter is reset to the default value stored in - <literal>session.cache_limiter</literal> at request startup time. Thus, - you need to call <function>session_cache_limiter</function> for every - request (and before <function>session_start</function> is called). + A korlátozó érték a php.ini <literal>session.cache_limiter</literal> + beállítására áll vissza a PHP program kérések végrehajtásakor. Ezért + minden programban, ahol az alapértelmezett korlátozás nem megfelelõ, + meg kell hívnod a <function>session_cache_limiter</function> függvényt + a <function>session_start</function> hívása elõtt. </para> <example> - <title><function>session_cache_limiter</function> examples</title> + <title><function>session_cache_limiter</function> példák</title> <programlisting role="php"> <![CDATA[ <?php -# set the cache limiter to 'private' +# A korlátozó 'private' értékre állítása session_cache_limiter('private'); $cache_limiter = session_cache_limiter(); -echo "The cache limiter is now set to $cache_limiter<p>"; +echo "A cache korlátozás értéke $cache_limiter<p>"; ?> ]]> </programlisting> @@ -1213,18 +1233,19 @@ <refentry id='function.session-cache-expire'> <refnamediv> <refname>session_cache_expire</refname> - <refpurpose>Return current cache expire</refpurpose> + <refpurpose>Az aktuális cache lejárat lekérdezése</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>Leírás</title> <methodsynopsis> <type>int</type><methodname>session_cache_expire</methodname> <methodparam choice="opt"><type>int</type><parameter>new_cache_expire</parameter></methodparam> </methodsynopsis> <para> - <function>session_cache_expire</function> returns current cache expire. - If <parameter>new_cache_expire</parameter> is given, the current - cache expire is replaced with <parameter>new_cache_expire</parameter>. + A <function>session_cache_expire</function> visszatér az aktuális + cache lejárati idõvel. Ha a <parameter>new_cache_expire</parameter> + paramétert is megadod, az érték a <parameter>new_cache_expire</parameter>-ben + megadottra változik. </para> </refsect1> </refentry> @@ -1232,26 +1253,29 @@ <refentry id="function.session-write-close"> <refnamediv> <refname>session_write_close</refname> - <refpurpose>Write session data and end session</refpurpose> + <refpurpose>A munkamenet adatok kiírása és a munkamenet lezárása</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>Leírás</title> <methodsynopsis> <type>void</type><methodname>session_write_close</methodname> <void/> </methodsynopsis> <para> - End the current session and store session data. + Az aktuális munkamenet befejezése, és a munkamenet adatok tárolása. </para> <para> - Session data is usually stored after your script terminated - without the need to call <function>session_write_close</function>, but as - session data is locked to prevent concurrent writes only one - script may operate on a session at any time. When using framesets - together with sessions you will experience the frames loading one - by one due to this locking. You can reduce the time needed to - load all the frames by ending the session as soon as all changes - to session variables are done. + A munkamenet adatok elmentésre kerülnek a programod futásának + végeztével, anélkül, hogy meghívnád a + <function>session_write_close</function> függvényt, de mivel + a munkamenet adatok zároltak az egyidõben írások elkerülésére, + egyszerre csak egy program tud dolgozni a munkamenettel. + Ha kereteket használsz a weboldaladon a munkamenetekkel + együtt, észre fogod venni, hogy a keretek egyesével töltõdnek + le emiatt a zárolás miatt. A keretek betöltéséhez szükséges + idõt lerövidítheted, ha rögtön meghívod ezt a függvényt a + programodban, amikor már biztos, hogy minden munkamenet + változtatást elvégeztél. </para> <!-- commented out until final decision on implementation <para>
Index: phpdoc/hu/functions/session.xml diff -u phpdoc/hu/functions/session.xml:1.3 phpdoc/hu/functions/session.xml:1.4 --- phpdoc/hu/functions/session.xml:1.3 Sun Mar 17 10:49:25 2002 +++ phpdoc/hu/functions/session.xml Fri Mar 22 06:14:44 2002 @@ -644,18 +644,18 @@ <refentry id="function.session-module-name"> <refnamediv> <refname>session_module_name</refname> - <refpurpose>Get and/or set the current session module</refpurpose> + <refpurpose>Az aktuális munkamenet modul lekérdezése / beállítása</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>Leírás</title> <methodsynopsis> <type>string</type><methodname>session_module_name</methodname> <methodparam choice="opt"><type>string</type><parameter>module</parameter></methodparam> </methodsynopsis> <para> - <function>session_module_name</function> returns the name of the - current session module. If <parameter>module</parameter> is - specified, that module will be used instead. + A <function>session_module_name</function> visszatér az aktuális + munkamenet modul nevével. Ha a <parameter>module</parameter> + paramétert is megadod, a modult a megadottra állítja át. </para> </refsect1> </refentry> @@ -663,24 +663,26 @@ <refentry id="function.session-save-path"> <refnamediv> <refname>session_save_path</refname> - <refpurpose>Get and/or set the current session save path</refpurpose> + <refpurpose>Az aktuális munkamenet mentési könyvtár lekérdezése / beállítása</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>Leírás</title> <methodsynopsis> <type>string</type><methodname>session_save_path</methodname> <methodparam choice="opt"><type>string</type><parameter>path</parameter></methodparam> </methodsynopsis> <para> - <function>session_save_path</function> returns the path of the current - directory used to save session data. If <parameter>path</parameter> - is specified, the path to which data is saved will be changed. + A <function>session_save_path</function> visszatér az aktuális munkamenet + mentési könyvtárral, ahol a PHP a munkamenet adatokat tárolja. Ha a + <parameter>path</parameter> paraméter meg van adva, a mentési könyvtár + megváltozik. <note> <para> - On some operating systems, you may want to specify a path on a - filesystem that handles lots of small files efficiently. For - example, on Linux, reiserfs may provide better performance than - ext2fs. + Néhány operációs renszeren lehetõség van arra, hogy olyan + elérési utat adjál meg, ami egy kis állományokat hatékonyabban + kezelõ állományrendszeren van. Linuxon például a reiserfs + állományrendszer jobb teljesítménnyel kezeli a PHP munkamenet + állományait, mint az ext2fs. </para> </note> </para> @@ -690,23 +692,23 @@ <refentry id="function.session-id"> <refnamediv> <refname>session_id</refname> - <refpurpose>Get and/or set the current session id</refpurpose> + <refpurpose>Az aktuális munkamenet azonosító lekérdezése / beállítása</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>Leírás</title> <methodsynopsis> <type>string</type><methodname>session_id</methodname> <methodparam choice="opt"><type>string</type><parameter>id</parameter></methodparam> </methodsynopsis> <para> - <function>session_id</function> returns the session id for the - current session. If <parameter>id</parameter> is specified, it - will replace the current session id. + A <function>session_id</function> visszatér az aktuális munkamenet + azonosítójával. Ha az <parameter>id</parameter> paramétert is megadod, + akkor az az érték lesz az új munkamenet azonosító. </para> <para> - The constant <systemitem>SID</systemitem> can also be used to - retrieve the current name and session id as a string suitable for - adding to URLs. + A <systemitem>SID</systemitem> konstans is használható az aktuális + munkemenet név és azonosító lekérdezésére, ha URL-be szeretnéd + tenni az azonosítót. </para> </refsect1> </refentry> @@ -715,88 +717,95 @@ <refnamediv> <refname>session_register</refname> <refpurpose> - Register one or more variables with the current session + Egy vagy több változó bejegyzése munkamenet változókként </refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>Leírás</title> <methodsynopsis> <type>bool</type><methodname>session_register</methodname> <methodparam><type>mixed</type><parameter>name</parameter></methodparam> <methodparam choice="opt"><type>mixed</type><parameter>...</parameter></methodparam> </methodsynopsis> <para> - <function>session_register</function> accepts a variable number of - arguments, any of which can be either a string holding the name of a - variable or an array consisting of variable names or other arrays. For - each name, <function>session_register</function> registers the global - variable with that name in the current session. + A <function>session_register</function> függvényt tetszõleges számú + paraméterrel hívhatod. Bármely paraméter lehet egy karaktersorozat, + ami egy változó neve, vagy egy tömb, ami változóneveket vagy újabb + tömböket tartalmaz. A <function>session_register</function> minden + megadott nevû globális változót bejegyzi az aktuális munkamenet + változójaként. </para> <caution> <para> - This registers a <emphasis>global</emphasis> variable. If you want to - register a session variable inside a function, you need to make sure to - make it global using <function>global</function> or use the session - arrays as noted below. + Ez a függvény <emphasis>globális</emphasis> változók regisztrálására + használható. Ha egy függvényen belül szeretnél munkamenet változót + bejegyezni, elõbb globálissá kell tenned a <function>global</function> + kulcsszó használatával, vagy a munkamenet tömböket kell használnod, + ahogy lentebb leírjuk. </para> </caution> <caution> <para> - If you are using - <varname>$HTTP_SESSION_VARS</varname>/<varname>$_SESSION</varname>, - do not use <function>session_register</function>, - <function>session_is_registered</function> and - <function>session_unregister</function>. + Ha a + <varname>$HTTP_SESSION_VARS</varname> vagy <varname>$_SESSION</varname> + tömböket használod, ne használd a <function>session_register</function>, + <function>session_is_registered</function> és + <function>session_unregister</function> függvényeket változók + bejegyzésére! </para> </caution> <para> - This function returns &true; when all of the variables are successfully - registered with the session. + Ez a függvény &true; értékkel tér vissza, ha minden megadott nevû + változó sikeresen bejegyzésre került a munkamenetben. </para> <para> - If <function>session_start</function> was not called before this function - is called, an implicit call to <function>session_start</function> with no - parameters will be made. + Ha a <function>session_start</function> függvényt nem hívtad meg + ennek a függvénynek a hívása elõtt, a + <function>session_register</function> meghívásával a PHP közvetve + automatikusan meghívja a <function>session_start</function> + függvényt paraméterek nélkül. </para> <para> - You can also create a session variable by simply setting the - appropriate member of the <varname>$HTTP_SESSION_VARS</varname> - or <varname>$_SESSION</varname> (PHP >= 4.1.0) array. + Egyszerûbben jegyezheted be a munkamenet változókat, ha a + <varname>$HTTP_SESSION_VARS</varname> vagy + <varname>$_SESSION</varname> (PHP >= 4.1.0) asszociatív + tömbök egyikében hozol létre egy új kulcsot és értéket. <informalexample> <programlisting role="php"> <![CDATA[ -$barney = "A big purple dinosaur."; +$barney = "Egy bíborszínû dinoszaurusz."; session_register("barney"); -$HTTP_SESSION_VARS["zim"] = "An invader from another planet."; +$HTTP_SESSION_VARS["zim"] = "Támadó egy másik bolygóról."; -# the auto-global $_SESSION array was introduced in PHP 4.1.0 -$_SESSION["spongebob"] = "He's got square pants."; +# A szuperglobális $_SESSION tömb a PHP 4.1.0 verzió óta használható +$_SESSION["spongebob"] = "Szögletes nadrágja van."; ]]> </programlisting> </informalexample> </para> <note> <para> - It is not currently possible to register resource variables in a - session. For example, you can not create a connection to a - database and store the connection id as a session variable and - expect the connection to still be valid the next time the - session is restored. PHP functions that return a resource are - identified by having a return type of - <literal>resource</literal> in their function definitions. A - list of functions that return resources are available in the - <link linkend="resource">resource types</link> appendix. - </para> - <para> - If <varname>$_SESSION</varname> (or - <varname>$HTTP_SESSION_VARS</varname> for PHP 4.0.6 or less) is - used, assign variable to - <varname>$_SESSION</varname>. i.e. $_SESSION['var'] = 'ABC'; + Jelenleg nem lehetséges erõforrások bejegyzése munkamenetekben. + Nem lehetséges például egy adatbázis kapcsolat létrehozása, + regisztrálása a munkamenetben, és a következõ munkamenet + folytatáskor az adatbázis kapcsolat használata. Az + erõforrásokkal visszatérõ függvények arról ismerhetõek fel, + hogy a leírásukban <literal>resource</literal> a megadott + visszatérési típus. Az erõforrásokkal visszatérõ függvények + listája megtalálható az <link linkend="resource">erõforrás + típusok</link> függelékben. + </para> + <para> + A <varname>$_SESSION</varname> (vagy + <varname>$HTTP_SESSION_VARS</varname> PHP 4.0.6 vagy korábbi + verziókban) használatakor új asszociatív indexet kell létrehozni + a <varname>$_SESSION</varname> tömbben. Például + $_SESSION['valtozo'] = 'ABC'; </para> </note> <para> - See also <function>session_is_registered</function> and + Lásd még <function>session_is_registered</function> és <function>session_unregister</function>. </para> </refsect1> @@ -806,47 +815,48 @@ <refnamediv> <refname>session_unregister</refname> <refpurpose> - Unregister a variable from the current session + Munkamenet változó törlése a munkamenetbõl </refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>Leírás</title> <methodsynopsis> <type>bool</type><methodname>session_unregister</methodname> <methodparam><type>string</type><parameter>name</parameter></methodparam> </methodsynopsis> <para> - <function>session_unregister</function> unregisters (forgets) - the global variable named <parameter>name</parameter> from the - current session. + A <function>session_unregister</function> törli (elfelejti) + a <parameter>name</parameter> paraméterben megadott nevû + globális munkamenet változót, az aktuális munkamenetbõl. </para> <para> - This function returns &true; when the variable is successfully - unregistered from the session. + Ez a függvény &true; értékkel tér vissza, ha a változó törlése + sikeresen megtörtént az aktuális munkamenetet érintõen. </para> <note> <para> - If <varname>$_SESSION</varname> (or - <varname>$HTTP_SESSION_VARS</varname> for PHP 4.0.6 or less) is - used, use <function>unset</function> to unregister a session - variable. + A <varname>$_SESSION</varname> (vagy + <varname>$HTTP_SESSION_VARS</varname> PHP 4.0.6 vagy korábbi + verziókban) használatakor az <function>unset</function> + függvényt kell használni munkamenet változó törlésére, + paraméterként átadva a tömb változóhoz tartozó elemét. </para> </note> <caution> <para> - This function doesn't unset the corresponding global variable for - <parameter>name</parameter>, it only prevents the variable from being - saved as part of the session. You must call <function>unset</function> - to remove the corresponding global variable. + Ez a függvény nem törli a munkamenet változóhoz tartozó globális + <parameter>name</parameter> nevû változót, csak megszünteti a + változó és a munkamenet kapcsolatát. Meg kell hívnod az + <function>unset</function> függvényt a változóra, ha törölni + szeretnéd a globális változót is. </para> </caution> <caution> <para> - If you are using - <varname>$HTTP_SESSION_VARS</varname>/<varname>$_SESSION</varname>, - do not use <function>session_register</function>, - <function>session_is_registered</function> and - <function>session_unregister</function>. + A <varname>$HTTP_SESSION_VARS</varname> vagy <varname>$_SESSION</varname> + tömbök használata esetén ne hívd meg a <function>session_register</function>, + <function>session_is_registered</function> vagy + <function>session_unregister</function> függvényeket. </para> </caution> </refsect1> @@ -856,25 +866,26 @@ <refnamediv> <refname>session_unset</refname> <refpurpose> - Free all session variables + Minden munkamenet változó felszabadítása </refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>Leírás</title> <methodsynopsis> <type>void</type><methodname>session_unset</methodname> <void/> </methodsynopsis> <para> - The <function>session_unset</function> function free's all session variables - currently registered. + A <function>session_unset</function> függvény minden éppen + bejegyzett munkamenet változót felszabadít. </para> <note> <para> - If <varname>$_SESSION</varname> (or - <varname>$HTTP_SESSION_VARS</varname> for PHP 4.0.6 or less) is - used, use <function>unset</function> to unregister session - variable. i.e. $_SESSION = array(); + Ha a <varname>$_SESSION</varname> (vagy + <varname>$HTTP_SESSION_VARS</varname> PHP 4.0.6 vagy korábbi verziókban) + tömböket használod, az <function>unset</function> függvénnyel tudsz + egyes változókat törlni. A teljes törléshez használd a + $_SESSION = array(); sort. </para> </note> </refsect1> @@ -884,35 +895,34 @@ <refnamediv> <refname>session_is_registered</refname> <refpurpose> - Find out if a variable is registered in a session + Egy változó bejegyzettségét ellenõrzi </refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>Leírás</title> <methodsynopsis> <type>bool</type><methodname>session_is_registered</methodname> <methodparam><type>string</type><parameter>name</parameter></methodparam> </methodsynopsis> <para> - <function>session_is_registered</function> returns &true; if there - is a variable with the name <parameter>name</parameter> - registered in the current session. + A <function>session_is_registered</function> &true; értékkel + tér vissza, ha a <parameter>name</parameter> nevû változó + be van jegyezve az aktuális munkamenet változójaként. </para> <note> <para> - If <varname>$_SESSION</varname> (or - <varname>$HTTP_SESSION_VARS</varname> for PHP 4.0.6 or less) is - used, use <function>isset</function> to check a variable is - registered in <varname>$_SESSION</varname>. + Ha a <varname>$_SESSION</varname> (vagy + <varname>$HTTP_SESSION_VARS</varname> PHP 4.0.6 vagy korábbi verziókban) + tömböket használod, az <function>isset</function> függvény hívásával + derítheted ki, hogy a változó be van-e jegyezve a munkamenetbe. </para> </note> <caution> <para> - If you are using - <varname>$HTTP_SESSION_VARS</varname>/<varname>$_SESSION</varname>, - do not use <function>session_register</function>, - <function>session_is_registered</function> and - <function>session_unregister</function>. + A <varname>$HTTP_SESSION_VARS</varname> vagy <varname>$_SESSION</varname> + tömbök használata esetén ne hívd meg a <function>session_register</function>, + <function>session_is_registered</function> vagy + <function>session_unregister</function> függvényeket. </para> </caution> </refsect1> @@ -922,39 +932,39 @@ <refnamediv> <refname>session_get_cookie_params</refname> <refpurpose> - Get the session cookie parameters + Lekérdezi a munkamenet süti paramétereit </refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>Leírás</title> <methodsynopsis> <type>array</type><methodname>session_get_cookie_params</methodname> <void/> </methodsynopsis> <para> - The <function>session_get_cookie_params</function> function returns an - array with the current session cookie information, the array contains - the following items: + A <function>session_get_cookie_params</function> visszaadja a munkamanet + süti paramétereit egy asszociatív tömbben. Ez a tömb a következõ elemeket + tartalmazza: <itemizedlist> <listitem> <simpara> - "lifetime" - The lifetime of the cookie. + "lifetime" - A süti élettartalma. </simpara> </listitem> <listitem> <simpara> - "path" - The path where information is stored. + "path" - A süti elérési út korlátozása. </simpara> </listitem> <listitem> <simpara> - "domain" - The domain of the cookie. + "domain" - A süti domain név korlátozása. </simpara> </listitem> <listitem> <simpara> - "secure" - The cookie should only be sent over secure connections. - (This item was added in PHP 4.0.4.) + "secure" - A süti csak biztonságos kapcsolaton keresztül + közlekedhet. (Ez a PHP 4.0.4 verzió óta lehetséges.) </simpara> </listitem> </itemizedlist> @@ -966,11 +976,11 @@ <refnamediv> <refname>session_set_cookie_params</refname> <refpurpose> - Set the session cookie parameters + A munkamenet süti paramétereit állítja be </refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>Leírás</title> <methodsynopsis> <type>void</type><methodname>session_set_cookie_params</methodname> <methodparam><type>int</type><parameter>lifetime</parameter></methodparam> @@ -978,8 +988,8 @@ <methodparam choice="opt"><type>string</type><parameter>domain</parameter></methodparam> </methodsynopsis> <para> - Set cookie parameters defined in the php.ini file. The effect of this - function only lasts for the duration of the script. + A php.ini állományban definiált süti paraméterek felülírása. Ezen + függvény hatása csak az aktuális program futásának végéig tart. </para> </refsect1> </refentry> @@ -987,18 +997,18 @@ <refentry id="function.session-decode"> <refnamediv> <refname>session_decode</refname> - <refpurpose>Decodes session data from a string</refpurpose> + <refpurpose>Visszakódolja a munkamenet adatokat egy karaktersorozatból</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>Leírás</title> <methodsynopsis> <type>bool</type><methodname>session_decode</methodname> <methodparam><type>string</type><parameter>data</parameter></methodparam> </methodsynopsis> <para> - <function>session_decode</function> decodes the session data in - <parameter>data</parameter>, setting variables stored in the - session. + A <function>session_decode</function> visszakódolja a munkamenet + adatokat a <parameter>data</parameter> karaktersorozatból, beállítva + a munkamenetben lévõ változókat. </para> </refsect1> </refentry> @@ -1007,18 +1017,18 @@ <refnamediv> <refname>session_encode</refname> <refpurpose> - Encodes the current session data as a string + Elkódolja a munkamenet adatokat egy karaktersorozatba </refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>Leírás</title> <methodsynopsis> <type>string</type><methodname>session_encode</methodname> <void/> </methodsynopsis> <para> - <function>session_encode</function> returns a string with the - contents of the current session encoded within. + A <function>session_encode</function> visszatér az aktuális + munkamenet adatainak egy karaktersorozatba kódolt változatával. </para> </refsect1> </refentry> @@ -1027,56 +1037,61 @@ <refnamediv> <refname>session_set_save_handler</refname> <refpurpose> - Sets user-level session storage functions + Felhasználói szintû munkamenet tároló függvényeket állít be </refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>Leírás</title> <methodsynopsis> <type>void</type><methodname>session_set_save_handler</methodname> <methodparam><type>string</type><parameter>open</parameter></methodparam><methodparam><type>string</type><parameter>close</parameter></methodparam><methodparam><type>string</type><parameter>read</parameter></methodparam><methodparam><type>string</type><parameter>write</parameter></methodparam><methodparam><type>string</type><parameter>destroy</parameter></methodparam><methodparam><type>string</type><parameter>gc</parameter></methodparam> </methodsynopsis> <para> - <function>session_set_save_handler</function> sets the user-level - session storage functions which are used for storing and - retrieving data associated with a session. This is most useful - when a storage method other than those supplied by PHP sessions - is preferred. i.e. Storing the session data in a local database. + A <function>session_set_save_handler</function> beállítja a + programozó által PHP-ben megírt munkamenet tároló függvényeket. + Ezeket használja majd a PHP a munkamenet adatainak tárolására + és lekérdezésére. Ez a lehetõség akkor hasznos, ha a PHP által + kínált módszerek nem megfelelõek. Másfajta tárolás lehetséges + az adatok lokális adatbázisban történõ rögzítésével. </para> <note> <para> - You must set the configuration option - <parameter>session.save_handler</parameter> to - <parameter>user</parameter> in your php.ini file for - <function>session_set_save_handler</function> to take effect. + A php.ini <parameter>session.save_handler</parameter> beállítását + mindenképpen <parameter>user</parameter> értékre kell állítanod, + hogy a <function>session_set_save_handler</function> függvény + hívásának legyen hatása. </para> </note> <note> <para> - The "write" handler is not executed until after the output - stream is closed. Thus, output from debugging statements in the - "write" handler will never be seen in the browser. If debugging - output is necessary, it is suggested that the debug output be - written to a file instead. + Az írás kezelõ csak a PHP program kimenetének elküldése + után hívódik meg. Ezért az írás kezelõben a böngészõ + számára kiírt, tipikusan hibakeresést szolgáló adatok + nem lesznek sohasem láthatóak a böngészõben. Ha a + hibakereséshez adatok kiírása szükséges, javasolt + napló állomány használata erre a célra. </para> </note> <para> - The following example provides file based session - storage similar to the PHP sessions default save handler - <parameter>files</parameter>. This example could easily be - extended to cover database storage using your favorite PHP - supported database engine. + Az alább látható példa állmoány alapú munkamenet adat + tárolást valósít meg, hasonlóan a PHP alapértelmezésû + <parameter>files</parameter> kezelõjéhez. Ez a példa + könnyen kiterjeszthetõ egy adatbázis tárolást alkalmazó + kezelõvé, felhasználva a kedvenc adatbáziskezelõd + függvényeit. </para> <para> - Read function must return string value always to make save - handler work as expected. Return empty string if there is no data - to read. Return values from other handlers are converted to - boolean expression. TRUE for success, FALSE for failure. + Az olvasó függvénynek mindig karaktersorozattal kell + visszatérnie, hogy a mentést végzõ kezelõ helyesen mûködjön. + Üres karaktersorozattal kell visszatérni, ha nincs + adat, amit olvasni lehetne. Más kezelõk visszatérési + értékei logikai típusúvá alakulnak. Igaz értéket + kell visszaadni siker estén, hamisat hiba esetén. </para> <para> <example> <title> - <function>session_set_save_handler</function> example + <function>session_set_save_handler</function> példa </title> <programlisting role="php"> <![CDATA[ @@ -1101,7 +1116,7 @@ $sess_data = fread($fp, filesize($sess_file)); return($sess_data); } else { - return(""); // Must return "" here. + return(""); // Itt mindenképpen "" a visszatérési érték. } } @@ -1126,8 +1141,8 @@ } /********************************************* - * WARNING - You will need to implement some * - * sort of garbage collection routine here. * + * FIGYELEM - Itt mindenképpen meg kell * + * valósítani valamiféle szemétgyûjtést. * *********************************************/ function gc ($maxlifetime) { return true; @@ -1137,7 +1152,7 @@ session_start(); -// proceed to use sessions normally +// Ezután hagyományosan használható a munkamenet ?> ]]> @@ -1150,59 +1165,64 @@ <refentry id="function.session-cache-limiter"> <refnamediv> <refname>session_cache_limiter</refname> - <refpurpose>Get and/or set the current cache limiter</refpurpose> + <refpurpose>Az aktuális munkamenet cache korlátozás lekérdezése / beállítása</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>Leírás</title> <methodsynopsis> <type>string</type><methodname>session_cache_limiter</methodname> <methodparam choice="opt"><type>string</type><parameter>cache_limiter</parameter></methodparam> </methodsynopsis> <para> - <function>session_cache_limiter</function> returns the name of the - current cache limiter. If <parameter>cache_limiter</parameter> is - specified, the name of the current cache limiter is changed to the - new value. - </para> - <para> - The cache limiter controls the cache control HTTP headers sent to the - client. These headers determine the rules by which the page content - may be cached. Setting the cache limiter to <literal>nocache</literal>, - for example, would disallow any client-side caching. A value of - <literal>public</literal>, however, would permit caching. It can also - be set to <literal>private</literal>, which is slightly more restrictive - than <literal>public</literal>. - </para> - <para> - In <literal>private</literal> mode, Expire header sent to the - client, may cause confusion for some browser including Mozilla. - You can avoid this problem with - <literal>private_no_expire</literal> mode. Expire header is never - sent to the client in this mode. + A <function>session_cache_limiter</function> visszatér az aktuális + munkamenet cache korlátozás értékével. Ha a + <parameter>cache_limiter</parameter> paraméter is meg van adva, + a cache korlátozás a megadott értékre változik. + </para> + <para> + A cache korlátozás szabályozza a cache befolyásoló HTTP fejléceket, + amiket a PHP a böngészõnek küld. Ezek a fejlécek szabályozzák, + hogy a munkameneteket használó oldalak hogyan jelenjenek meg + a gyorsítótárakban. Ha a <literal>nocache</literal> értéket állítod + be, minden kliens oldali cache-elést letiltasz. A + <literal>public</literal> értékkel éppen ellenkezõleg engedélyezed + a cache-elést. Ezen kívül még a <literal>private</literal> értéket + is meg tudod adni, ami valamivel korlátozottabb, mint a + <literal>public</literal>. + </para> + <para> + <literal>private</literal> módban az Expire fejléc, amit a + böngészõ kap gondot okozhat a feldolgozásban néhány böngészõnél, + mint pl. a Mozilla. Ezt a problémát a + <literal>private_no_expire</literal> mód bekapcsolásával tudod + orvosolni. Az Expire fejlécet ebben a módban nem küldi el a PHP + a kliensnek. </para> <note> <para> - <literal>private_no_expire</literal> was added in PHP 4.2.0dev. + A <literal>private_no_expire</literal> a 4.2.0dev verzióban került + a lehetõségek közé. </para> </note> <para> - The cache limiter is reset to the default value stored in - <literal>session.cache_limiter</literal> at request startup time. Thus, - you need to call <function>session_cache_limiter</function> for every - request (and before <function>session_start</function> is called). + A korlátozó érték a php.ini <literal>session.cache_limiter</literal> + beállítására áll vissza a PHP program kérések végrehajtásakor. Ezért + minden programban, ahol az alapértelmezett korlátozás nem megfelelõ, + meg kell hívnod a <function>session_cache_limiter</function> függvényt + a <function>session_start</function> hívása elõtt. </para> <example> - <title><function>session_cache_limiter</function> examples</title> + <title><function>session_cache_limiter</function> példák</title> <programlisting role="php"> <![CDATA[ <?php -# set the cache limiter to 'private' +# A korlátozó 'private' értékre állítása session_cache_limiter('private'); $cache_limiter = session_cache_limiter(); -echo "The cache limiter is now set to $cache_limiter<p>"; +echo "A cache korlátozás értéke $cache_limiter<p>"; ?> ]]> </programlisting> @@ -1213,18 +1233,19 @@ <refentry id='function.session-cache-expire'> <refnamediv> <refname>session_cache_expire</refname> - <refpurpose>Return current cache expire</refpurpose> + <refpurpose>Az aktuális cache lejárat lekérdezése</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>Leírás</title> <methodsynopsis> <type>int</type><methodname>session_cache_expire</methodname> <methodparam choice="opt"><type>int</type><parameter>new_cache_expire</parameter></methodparam> </methodsynopsis> <para> - <function>session_cache_expire</function> returns current cache expire. - If <parameter>new_cache_expire</parameter> is given, the current - cache expire is replaced with <parameter>new_cache_expire</parameter>. + A <function>session_cache_expire</function> visszatér az aktuális + cache lejárati idõvel. Ha a <parameter>new_cache_expire</parameter> + paramétert is megadod, az érték a <parameter>new_cache_expire</parameter>-ben + megadottra változik. </para> </refsect1> </refentry> @@ -1232,26 +1253,29 @@ <refentry id="function.session-write-close"> <refnamediv> <refname>session_write_close</refname> - <refpurpose>Write session data and end session</refpurpose> + <refpurpose>A munkamenet adatok kiírása és a munkamenet lezárása</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>Leírás</title> <methodsynopsis> <type>void</type><methodname>session_write_close</methodname> <void/> </methodsynopsis> <para> - End the current session and store session data. + Az aktuális munkamenet befejezése, és a munkamenet adatok tárolása. </para> <para> - Session data is usually stored after your script terminated - without the need to call <function>session_write_close</function>, but as - session data is locked to prevent concurrent writes only one - script may operate on a session at any time. When using framesets - together with sessions you will experience the frames loading one - by one due to this locking. You can reduce the time needed to - load all the frames by ending the session as soon as all changes - to session variables are done. + A munkamenet adatok elmentésre kerülnek a programod futásának + végeztével, anélkül, hogy meghívnád a + <function>session_write_close</function> függvényt, de mivel + a munkamenet adatok zároltak az egyidõben írások elkerülésére, + egyszerre csak egy program tud dolgozni a munkamenettel. + Ha kereteket használsz a weboldaladon a munkamenetekkel + együtt, észre fogod venni, hogy a keretek egyesével töltõdnek + le emiatt a zárolás miatt. A keretek betöltéséhez szükséges + idõt lerövidítheted, ha rögtön meghívod ezt a függvényt a + programodban, amikor már biztos, hogy minden munkamenet + változtatást elvégeztél. </para> <!-- commented out until final decision on implementation <para>