cvs: phpdoc-ja /reference/session constants.xml ini.xml reference.xml /reference/session/functions session-cache-limiter.xml session-destroy.xml
session-id.xml session-name.xml
| From: | Yu Watanabe | Date: | Sun, 05 Sep 2004 04:11:47 +0000 |
| Subject: | cvs: phpdoc-ja /reference/session constants.xml ini.xml reference.xml /reference/session/functions session-cache-limiter.xml session-destroy.xml session-id.xml session-name.xml |
||
| Groups: | php.doc.ja | ||
| Request: | Send a blank email to doc-ja+get-720@lists.php.net to get a copy of this message | ||
yuw Sun Sep 5 00:11:47 2004 EDT
Modified files:
/phpdoc-ja/reference/session constants.xml ini.xml reference.xml
/phpdoc-ja/reference/session/functions session-cache-limiter.xml
session-destroy.xml
session-id.xml
session-name.xml
Log:
translation update.
http://cvs.php.net/diff.php/phpdoc-ja/reference/session/constants.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-ja/reference/session/constants.xml diff -u phpdoc-ja/reference/session/constants.xml:1.1 phpdoc-ja/reference/session/constants.xml:1.2 --- phpdoc-ja/reference/session/constants.xml:1.1 Sat Jun 21 06:20:05 2003 +++ phpdoc-ja/reference/session/constants.xml Sun Sep 5 00:11:46 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> -<!-- sync: 1.3 --> +<!-- $Revision: 1.2 $ --> +<!-- sync: 1.4 --> <section id="session.constants"> &reftitle.constants; &extension.constants; @@ -12,7 +12,8 @@ </term> <listitem> <simpara> - <literal>"name=ID"</literal>å½¢å¼ã§ã»ãã·ã§ã³åã¨ã»ãã·ã§ã³IDãæ ¼ç´ãã¦ãã宿° + <literal>"name=ID"</literal>å½¢å¼ã§ã»ãã·ã§ã³åã¨ã»ãã·ã§ã³IDãæ ¼ç´ãã¦ãã宿°ã + ã»ãã·ã§ã³IDãã»ãã·ã§ã³ã¯ããã¼ã«é©åã«ã»ããããã¦ããå ´åã«ã¯ç©ºæååãå ¥ãã </simpara> </listitem> </varlistentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/session/ini.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/session/ini.xml diff -u phpdoc-ja/reference/session/ini.xml:1.4 phpdoc-ja/reference/session/ini.xml:1.5 --- phpdoc-ja/reference/session/ini.xml:1.4 Thu Feb 26 05:56:16 2004 +++ phpdoc-ja/reference/session/ini.xml Sun Sep 5 00:11:46 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.4 $ --> -<!-- sync: 1.21 --> +<!-- $Revision: 1.5 $ --> +<!-- sync: 1.26 --> <section id="session.configuration"> &reftitle.runtime; &extension.runtime; @@ -117,6 +117,26 @@ <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry> </row> <row> + <entry>session.bug_compat_42</entry> + <entry>"1"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.bug_compat_warn</entry> + <entry>"1"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.hash_function</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.hash_bits_per_character</entry> + <entry>"4"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> <entry>url_rewriter.tags</entry> <entry>"a=href,area=href,frame=src,input=src,form=fakeentry"</entry> <entry>PHP_INI_ALL</entry> @@ -417,7 +437,7 @@ </term> <listitem> <simpara> - <literal>session.cookie_path</literal>ã«ããsession_cokkieã§è¨ + <literal>session.cookie_path</literal>ã«ããsession_cookieã§è¨ å®ãããã¹ãæå®ãã¾ããããã©ã«ãã¯<literal>/</literal>ã§ãã <function>session_get_cookie_params</function>ããã³ <function>session_set_cookie_params</function>ãåç §ãã¦ä¸ããã @@ -605,7 +625,7 @@ <literal>url_rewriter.tags</literal>ã¯ãééçãªã»ãã·ã§ã³IDã® ä»å æ©è½ãæå¹ã¨ãªã£ãå ´åã«ãã»ãã·ã§ã³IDãå«ããããã«æ¸ãæ ããããHTMLã¿ã°ãæå®ãã¾ããããã©ã«ãã¯ã - <literal>a=href,area=href,frame=src,input=src,form=fakeentry</literal> + <literal>a=href,area=href,frame=src,input=src,form=fakeentry,fieldset=</literal> ã§ãã </simpara> <note> http://cvs.php.net/diff.php/phpdoc-ja/reference/session/reference.xml?r1=1.10&r2=1.11&ty=u Index: phpdoc-ja/reference/session/reference.xml diff -u phpdoc-ja/reference/session/reference.xml:1.10 phpdoc-ja/reference/session/reference.xml:1.11 --- phpdoc-ja/reference/session/reference.xml:1.10 Wed Jan 7 04:39:08 2004 +++ phpdoc-ja/reference/session/reference.xml Sun Sep 5 00:11:46 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.10 $ --> -<!-- sync: 1.41 --> +<!-- $Revision: 1.11 $ --> +<!-- sync: 1.49 --> <reference id="ref.session"> <title>ã»ãã·ã§ã³å¦ç颿°(session)</title> <titleabbrev>ã»ãã·ã§ã³</titleabbrev> @@ -206,6 +206,24 @@ ]]> </programlisting> </example> + </para> + <para> + <caution> + <para> + <literal>unset($_SESSION)</literal>ã«ãã£ã¦ + å ¨ã¦ã®<varname>$_SESSION</varname>ãåæåãã¦ã¯ããã¾ããã + <varname>$_SESSION</varname>ã¹ã¼ãã¼ã°ãã¼ãã«å¤æ°ãç¨ãã + ã»ãã·ã§ã³å¤æ°ã®ç»é²ãã§ããªããªã£ã¦ãã¾ãããã§ãã + </para> + </caution> + </para> + <warning> + <para> + ã»ãã·ã§ã³å¤æ°ã«ããã¦åç §ã使ç¨ãããã¨ã¯ã§ãã¾ããã + ä»ã®å¤æ°ã¸ã®åç §ã®åç¾ããæ¹æ³ããªãããã§ãã + </para> + </warning> + <para> <example> <title> <link @@ -360,9 +378,14 @@ } ?> -ããã«ã¡ã¯ãããªãããã®ãã¼ã¸ã«æ¥ãã®ã¯<?php echo $count; ?>åç®ã§ããã <p> +<p> +ããã«ã¡ã¯ãããªãããã®ãã¼ã¸ã«æ¥ãã®ã¯<?php echo $count; ?>åç®ã§ããã +</p> -ç¶ããã«ã¯ã<A HREF="nextpage.php?<?php echo strip_tags ï¼SIDï¼?>">ãããã¯ãªãã¯</A>ãã¦ä¸ããã +<p> +ç¶ããã«ã¯ã<A HREF="nextpage.php?<?php echo strip_tags ï¼SIDï¼?>">ãããã¯ãªãã¯</A> +ãã¦ä¸ããã +</p> ]]> </programlisting> </example> @@ -381,7 +404,7 @@ <para> ç¸å¯¾URLã§ãªãURLã¯å¤é¨ãµã¤ããæãã¦ããã¨ä»®å®ãããSIDã追å ããã¾ãããããã¯ãSIDãå¤é¨ã®ãµã¼ãã«é示ãããã¨ã¯ã»ãã¥ãªã㣠- ä¸ã®ãªã¹ã¯ã¨ãªãå¯è¾²æ¿ãããããã§ãã + ä¸ã®ãªã¹ã¯ã¨ãªãå¯è½æ§ãããããã§ãã </para> </note> </section> http://cvs.php.net/diff.php/phpdoc-ja/reference/session/functions/session-cache-limiter.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/session/functions/session-cache-limiter.xml diff -u phpdoc-ja/reference/session/functions/session-cache-limiter.xml:1.3 phpdoc-ja/reference/session/functions/session-cache-limiter.xml:1.4 --- phpdoc-ja/reference/session/functions/session-cache-limiter.xml:1.3 Thu Jul 3 20:06:49 2003 +++ phpdoc-ja/reference/session/functions/session-cache-limiter.xml Sun Sep 5 00:11:47 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <!-- splitted from ./ja/functions/session.xml, last change in rev 1.27 --> -<!-- sync: 1.5 --> +<!-- sync: 1.6 --> <refentry id="function.session-cache-limiter"> <refnamediv> <refname>session_cache_limiter</refname> @@ -60,7 +60,7 @@ session_cache_limiter('private'); $cache_limiter = session_cache_limiter(); -echo "The cache limiter is now set to $cache_limiter<p>"; +echo "The cache limiter is now set to $cache_limiter<br />"; ?> ]]> </programlisting> http://cvs.php.net/diff.php/phpdoc-ja/reference/session/functions/session-destroy.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-ja/reference/session/functions/session-destroy.xml diff -u phpdoc-ja/reference/session/functions/session-destroy.xml:1.2 phpdoc-ja/reference/session/functions/session-destroy.xml:1.3 --- phpdoc-ja/reference/session/functions/session-destroy.xml:1.2 Thu Jul 3 20:06:49 2003 +++ phpdoc-ja/reference/session/functions/session-destroy.xml Sun Sep 5 00:11:47 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <!-- splitted from ./ja/functions/session.xml, last change in rev 1.1 --> -<!-- sync: 1.2 --> +<!-- sync: 1.4 --> <refentry id="function.session-destroy"> <refnamediv> <refname>session_destroy</refname> @@ -18,49 +18,51 @@ ã»ãã·ã§ã³ã«é¢ããã°ãã¼ãã«å¤æ°ãç ´æ£ãã¾ãããã¾ããã»ãã·ã§ã³ ã¯ããã¼ãç ´æ£ãã¾ããã </simpara> + <para> + ã¦ã¼ã¶ã¼ããã°ã¢ã¦ãããã¨ãã®ããã«ãã»ãã·ã§ã³ãåæããã«ã¯ã + ã»ãã·ã§ã³IDãå²ãå½ã¦ãè§£é¤ããå¿ è¦ãããã¾ããã»ãã·ã§ã³IDã®åãæ¸¡ãã« + ã¯ããã¼ã使ç¨ããã¦ããå ´åï¼ããã©ã«ãï¼ã«ã¯ãã»ãã·ã§ã³ã¯ããã¼ã + åé¤ãããªããã°ãªãã¾ããã + ãã®ããã«ã¯<function>setcookie</function>ãå©ç¨ã§ãã¾ãã + </para> <simpara> - ãã®é¢æ°ã¯ã»ãã·ã§ã³ãã¼ã¿ã®ç ´æ£ã«æåããå ´åã«&true;ã失æãã - å ´åã«&false;ãè¿ãã¾ãã + &return.success; </simpara> <para> <example> - <title>ã»ãã·ã§ã³ãç ´æ£ãã</title> + <title><varname>$_SESSION</varname>ã§ã»ãã·ã§ã³ãç ´æ£ãã</title> <programlisting role="php"> <![CDATA[ <?php - -// Initialize the session. -// If you are using session_name("something"), don't forget it now! +// ã»ãã·ã§ã³ã®åæå +// session_name("something")ã使ç¨ãã¦ããå ´åã¯ç¹ã«ãããå¿ããªãããã«! session_start(); -// Unset all of the session variables. -session_unset(); -// Finally, destroy the session. -session_destroy(); -?> -]]> - </programlisting> - </example> - </para> - <para> - <example> - <title>$_SESSIONã§ã»ãã·ã§ã³ãç ´æ£ãã</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// Initialize the session. -// If you are using session_name("something"), don't forget it now! -session_start(); -// Unset all of the session variables. +// ã»ãã·ã§ã³å¤æ°ãå ¨ã¦è§£é¤ãã $_SESSION = array(); -// Finally, destroy the session. -session_destroy(); +// ã»ãã·ã§ã³ãåæããã«ã¯ã»ãã·ã§ã³ã¯ããã¼ãåé¤ããã +// Note: ã»ãã·ã§ã³æ å ±ã ãã§ãªãã»ãã·ã§ã³ãç ´å£ããã +if (isset($_COOKIE[session_name()])) { + setcookie(session_name(), '', time()-42000, '/'); +} + +// æçµçã«ãã»ãã·ã§ã³ãç ´å£ãã +session_destroy(); ?> ]]> </programlisting> </example> + </para> + <note> + <para> + <varname>$_SESSION</varname>ã使ã£ã¦ããªãå¤ãã³ã¼ãã§ã®ã¿ + <function>session_unset</function>ã使ç¨ãããã¨ã + </para> + </note> + <para> + <function>unset</function>㨠+ <function>setcookie</function>ãåç §ã®ãã¨ã </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/session/functions/session-id.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/session/functions/session-id.xml diff -u phpdoc-ja/reference/session/functions/session-id.xml:1.3 phpdoc-ja/reference/session/functions/session-id.xml:1.4 --- phpdoc-ja/reference/session/functions/session-id.xml:1.3 Thu Jul 3 20:06:49 2003 +++ phpdoc-ja/reference/session/functions/session-id.xml Sun Sep 5 00:11:47 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <!-- splitted from ./ja/functions/session.xml, last change in rev 1.1 --> -<!-- sync: 1.5 --> +<!-- sync: 1.8 --> <refentry id="function.session-id"> <refnamediv> <refname>session_id</refname> @@ -10,20 +10,25 @@ <title>説æ</title> <methodsynopsis> <type>string</type><methodname>session_id</methodname> - <methodparam><type>string</type><parameter> - <replaceable><optional>id</optional></replaceable> - </parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>id</parameter></methodparam> </methodsynopsis> <para> - <function>session_id</function>ã¯ãã«ã¬ã³ãã®ã»ãã·ã§ã³ã®ã»ãã·ã§ - ã³IDãè¿ãã¾ãã<parameter>id</parameter>ãæå®ãããå ´åãã«ã¬ã³ - ãã®ã»ãã·ã§ã³IDãç½®æãã¾ãããã®éã - <function>session_start</function>ããåã« - ã³ã¼ã«ããã¦ããå¿ è¦ãããã¾ãã + <function>session_id</function>ã¯ãã«ã¬ã³ãã®ã»ãã·ã§ã³ã®ã»ãã·ã§ã³IDã + è¿ãã¾ãã<parameter>id</parameter>ãæå®ãããå ´åãã«ã¬ã³ãã® + ã»ãã·ã§ã³IDãç½®æãã¾ãããã®éã + <function>session_start</function>ããåã«ã³ã¼ã«ããã¦ããå¿ è¦ãããã¾ãã ã»ãã·ã§ã³ãã³ãã©ã«ãã£ã¦ã¯ãã»ãã·ã§ã³IDã¨ãã¦ä½¿ç¨ã§ããæåã« å¶éãããå ´åãããã¾ããä¾ãã°ããã¡ã¤ã«ã«ããã»ãã·ã§ã³ãã³ãã©ã¯ ã»ãã·ã§ã³IDã¨ãã¦ä½¿ããæåã¯<literal>a-z, A-Z, 0-9</literal>ã«éããã¾ã! </para> + <note> + <simpara> + ã»ãã·ã§ã³ä¿æã«ã¯ããã¼ã使ç¨ãã¦ããå ´åã<function>session_id</function> + ã«ããã¦<parameter>id</parameter>弿°ãæå®ããã¨ã + ã«ã¬ã³ãã®ã»ãã·ã§ã³IDããã»ããããããã®ã¨ã¾ã£ããåä¸ã§ãããååã«é¢ãããã + <function>session_start</function>ãå¼ã³åºãããéã«å¸¸ã«æ°ããã¯ããã¼ãéä¿¡ããã¾ãã + </simpara> + </note> <para> ã«ã¬ã³ãã®ååã¨ã»ãã·ã§ã³IDããURLã«è¿½å å¯è½ãªæååã¨ãã¦åå¾ã ãããã«å®æ° <systemitem>SID</systemitem> ã使ç¨ãããã¨ãå¯è½ã§ãã http://cvs.php.net/diff.php/phpdoc-ja/reference/session/functions/session-name.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/session/functions/session-name.xml diff -u phpdoc-ja/reference/session/functions/session-name.xml:1.4 phpdoc-ja/reference/session/functions/session-name.xml:1.5 --- phpdoc-ja/reference/session/functions/session-name.xml:1.4 Thu Jul 3 20:06:49 2003 +++ phpdoc-ja/reference/session/functions/session-name.xml Sun Sep 5 00:11:47 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <!-- splitted from ./ja/functions/session.xml, last change in rev 1.3 --> -<!-- sync: 1.2 --> +<!-- sync: 1.4 --> <refentry id="function.session-name"> <refnamediv> <refname>session_name</refname> @@ -38,7 +38,7 @@ $previous_name = session_name("WebsiteID"); -echo "ååã®ã»ãã·ã§ã³åã¯ã$previous_name ã§ãã<p>"; +echo "ååã®ã»ãã·ã§ã³åã¯ã$previous_name ã§ãã<br />"; ?> ]]> </programlisting>
http://cvs.php.net/diff.php/phpdoc-ja/reference/session/constants.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-ja/reference/session/constants.xml diff -u phpdoc-ja/reference/session/constants.xml:1.1 phpdoc-ja/reference/session/constants.xml:1.2 --- phpdoc-ja/reference/session/constants.xml:1.1 Sat Jun 21 06:20:05 2003 +++ phpdoc-ja/reference/session/constants.xml Sun Sep 5 00:11:46 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> -<!-- sync: 1.3 --> +<!-- $Revision: 1.2 $ --> +<!-- sync: 1.4 --> <section id="session.constants"> &reftitle.constants; &extension.constants; @@ -12,7 +12,8 @@ </term> <listitem> <simpara> - <literal>"name=ID"</literal>å½¢å¼ã§ã»ãã·ã§ã³åã¨ã»ãã·ã§ã³IDãæ ¼ç´ãã¦ãã宿° + <literal>"name=ID"</literal>å½¢å¼ã§ã»ãã·ã§ã³åã¨ã»ãã·ã§ã³IDãæ ¼ç´ãã¦ãã宿°ã + ã»ãã·ã§ã³IDãã»ãã·ã§ã³ã¯ããã¼ã«é©åã«ã»ããããã¦ããå ´åã«ã¯ç©ºæååãå ¥ãã </simpara> </listitem> </varlistentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/session/ini.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/session/ini.xml diff -u phpdoc-ja/reference/session/ini.xml:1.4 phpdoc-ja/reference/session/ini.xml:1.5 --- phpdoc-ja/reference/session/ini.xml:1.4 Thu Feb 26 05:56:16 2004 +++ phpdoc-ja/reference/session/ini.xml Sun Sep 5 00:11:46 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.4 $ --> -<!-- sync: 1.21 --> +<!-- $Revision: 1.5 $ --> +<!-- sync: 1.26 --> <section id="session.configuration"> &reftitle.runtime; &extension.runtime; @@ -117,6 +117,26 @@ <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry> </row> <row> + <entry>session.bug_compat_42</entry> + <entry>"1"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.bug_compat_warn</entry> + <entry>"1"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.hash_function</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.hash_bits_per_character</entry> + <entry>"4"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> <entry>url_rewriter.tags</entry> <entry>"a=href,area=href,frame=src,input=src,form=fakeentry"</entry> <entry>PHP_INI_ALL</entry> @@ -417,7 +437,7 @@ </term> <listitem> <simpara> - <literal>session.cookie_path</literal>ã«ããsession_cokkieã§è¨ + <literal>session.cookie_path</literal>ã«ããsession_cookieã§è¨ å®ãããã¹ãæå®ãã¾ããããã©ã«ãã¯<literal>/</literal>ã§ãã <function>session_get_cookie_params</function>ããã³ <function>session_set_cookie_params</function>ãåç §ãã¦ä¸ããã @@ -605,7 +625,7 @@ <literal>url_rewriter.tags</literal>ã¯ãééçãªã»ãã·ã§ã³IDã® ä»å æ©è½ãæå¹ã¨ãªã£ãå ´åã«ãã»ãã·ã§ã³IDãå«ããããã«æ¸ãæ ããããHTMLã¿ã°ãæå®ãã¾ããããã©ã«ãã¯ã - <literal>a=href,area=href,frame=src,input=src,form=fakeentry</literal> + <literal>a=href,area=href,frame=src,input=src,form=fakeentry,fieldset=</literal> ã§ãã </simpara> <note> http://cvs.php.net/diff.php/phpdoc-ja/reference/session/reference.xml?r1=1.10&r2=1.11&ty=u Index: phpdoc-ja/reference/session/reference.xml diff -u phpdoc-ja/reference/session/reference.xml:1.10 phpdoc-ja/reference/session/reference.xml:1.11 --- phpdoc-ja/reference/session/reference.xml:1.10 Wed Jan 7 04:39:08 2004 +++ phpdoc-ja/reference/session/reference.xml Sun Sep 5 00:11:46 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.10 $ --> -<!-- sync: 1.41 --> +<!-- $Revision: 1.11 $ --> +<!-- sync: 1.49 --> <reference id="ref.session"> <title>ã»ãã·ã§ã³å¦ç颿°(session)</title> <titleabbrev>ã»ãã·ã§ã³</titleabbrev> @@ -206,6 +206,24 @@ ]]> </programlisting> </example> + </para> + <para> + <caution> + <para> + <literal>unset($_SESSION)</literal>ã«ãã£ã¦ + å ¨ã¦ã®<varname>$_SESSION</varname>ãåæåãã¦ã¯ããã¾ããã + <varname>$_SESSION</varname>ã¹ã¼ãã¼ã°ãã¼ãã«å¤æ°ãç¨ãã + ã»ãã·ã§ã³å¤æ°ã®ç»é²ãã§ããªããªã£ã¦ãã¾ãããã§ãã + </para> + </caution> + </para> + <warning> + <para> + ã»ãã·ã§ã³å¤æ°ã«ããã¦åç §ã使ç¨ãããã¨ã¯ã§ãã¾ããã + ä»ã®å¤æ°ã¸ã®åç §ã®åç¾ããæ¹æ³ããªãããã§ãã + </para> + </warning> + <para> <example> <title> <link @@ -360,9 +378,14 @@ } ?> -ããã«ã¡ã¯ãããªãããã®ãã¼ã¸ã«æ¥ãã®ã¯<?php echo $count; ?>åç®ã§ããã <p> +<p> +ããã«ã¡ã¯ãããªãããã®ãã¼ã¸ã«æ¥ãã®ã¯<?php echo $count; ?>åç®ã§ããã +</p> -ç¶ããã«ã¯ã<A HREF="nextpage.php?<?php echo strip_tags ï¼SIDï¼?>">ãããã¯ãªãã¯</A>ãã¦ä¸ããã +<p> +ç¶ããã«ã¯ã<A HREF="nextpage.php?<?php echo strip_tags ï¼SIDï¼?>">ãããã¯ãªãã¯</A> +ãã¦ä¸ããã +</p> ]]> </programlisting> </example> @@ -381,7 +404,7 @@ <para> ç¸å¯¾URLã§ãªãURLã¯å¤é¨ãµã¤ããæãã¦ããã¨ä»®å®ãããSIDã追å ããã¾ãããããã¯ãSIDãå¤é¨ã®ãµã¼ãã«é示ãããã¨ã¯ã»ãã¥ãªã㣠- ä¸ã®ãªã¹ã¯ã¨ãªãå¯è¾²æ¿ãããããã§ãã + ä¸ã®ãªã¹ã¯ã¨ãªãå¯è½æ§ãããããã§ãã </para> </note> </section> http://cvs.php.net/diff.php/phpdoc-ja/reference/session/functions/session-cache-limiter.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/session/functions/session-cache-limiter.xml diff -u phpdoc-ja/reference/session/functions/session-cache-limiter.xml:1.3 phpdoc-ja/reference/session/functions/session-cache-limiter.xml:1.4 --- phpdoc-ja/reference/session/functions/session-cache-limiter.xml:1.3 Thu Jul 3 20:06:49 2003 +++ phpdoc-ja/reference/session/functions/session-cache-limiter.xml Sun Sep 5 00:11:47 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <!-- splitted from ./ja/functions/session.xml, last change in rev 1.27 --> -<!-- sync: 1.5 --> +<!-- sync: 1.6 --> <refentry id="function.session-cache-limiter"> <refnamediv> <refname>session_cache_limiter</refname> @@ -60,7 +60,7 @@ session_cache_limiter('private'); $cache_limiter = session_cache_limiter(); -echo "The cache limiter is now set to $cache_limiter<p>"; +echo "The cache limiter is now set to $cache_limiter<br />"; ?> ]]> </programlisting> http://cvs.php.net/diff.php/phpdoc-ja/reference/session/functions/session-destroy.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-ja/reference/session/functions/session-destroy.xml diff -u phpdoc-ja/reference/session/functions/session-destroy.xml:1.2 phpdoc-ja/reference/session/functions/session-destroy.xml:1.3 --- phpdoc-ja/reference/session/functions/session-destroy.xml:1.2 Thu Jul 3 20:06:49 2003 +++ phpdoc-ja/reference/session/functions/session-destroy.xml Sun Sep 5 00:11:47 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <!-- splitted from ./ja/functions/session.xml, last change in rev 1.1 --> -<!-- sync: 1.2 --> +<!-- sync: 1.4 --> <refentry id="function.session-destroy"> <refnamediv> <refname>session_destroy</refname> @@ -18,49 +18,51 @@ ã»ãã·ã§ã³ã«é¢ããã°ãã¼ãã«å¤æ°ãç ´æ£ãã¾ãããã¾ããã»ãã·ã§ã³ ã¯ããã¼ãç ´æ£ãã¾ããã </simpara> + <para> + ã¦ã¼ã¶ã¼ããã°ã¢ã¦ãããã¨ãã®ããã«ãã»ãã·ã§ã³ãåæããã«ã¯ã + ã»ãã·ã§ã³IDãå²ãå½ã¦ãè§£é¤ããå¿ è¦ãããã¾ããã»ãã·ã§ã³IDã®åãæ¸¡ãã« + ã¯ããã¼ã使ç¨ããã¦ããå ´åï¼ããã©ã«ãï¼ã«ã¯ãã»ãã·ã§ã³ã¯ããã¼ã + åé¤ãããªããã°ãªãã¾ããã + ãã®ããã«ã¯<function>setcookie</function>ãå©ç¨ã§ãã¾ãã + </para> <simpara> - ãã®é¢æ°ã¯ã»ãã·ã§ã³ãã¼ã¿ã®ç ´æ£ã«æåããå ´åã«&true;ã失æãã - å ´åã«&false;ãè¿ãã¾ãã + &return.success; </simpara> <para> <example> - <title>ã»ãã·ã§ã³ãç ´æ£ãã</title> + <title><varname>$_SESSION</varname>ã§ã»ãã·ã§ã³ãç ´æ£ãã</title> <programlisting role="php"> <![CDATA[ <?php - -// Initialize the session. -// If you are using session_name("something"), don't forget it now! +// ã»ãã·ã§ã³ã®åæå +// session_name("something")ã使ç¨ãã¦ããå ´åã¯ç¹ã«ãããå¿ããªãããã«! session_start(); -// Unset all of the session variables. -session_unset(); -// Finally, destroy the session. -session_destroy(); -?> -]]> - </programlisting> - </example> - </para> - <para> - <example> - <title>$_SESSIONã§ã»ãã·ã§ã³ãç ´æ£ãã</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// Initialize the session. -// If you are using session_name("something"), don't forget it now! -session_start(); -// Unset all of the session variables. +// ã»ãã·ã§ã³å¤æ°ãå ¨ã¦è§£é¤ãã $_SESSION = array(); -// Finally, destroy the session. -session_destroy(); +// ã»ãã·ã§ã³ãåæããã«ã¯ã»ãã·ã§ã³ã¯ããã¼ãåé¤ããã +// Note: ã»ãã·ã§ã³æ å ±ã ãã§ãªãã»ãã·ã§ã³ãç ´å£ããã +if (isset($_COOKIE[session_name()])) { + setcookie(session_name(), '', time()-42000, '/'); +} + +// æçµçã«ãã»ãã·ã§ã³ãç ´å£ãã +session_destroy(); ?> ]]> </programlisting> </example> + </para> + <note> + <para> + <varname>$_SESSION</varname>ã使ã£ã¦ããªãå¤ãã³ã¼ãã§ã®ã¿ + <function>session_unset</function>ã使ç¨ãããã¨ã + </para> + </note> + <para> + <function>unset</function>㨠+ <function>setcookie</function>ãåç §ã®ãã¨ã </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/session/functions/session-id.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/session/functions/session-id.xml diff -u phpdoc-ja/reference/session/functions/session-id.xml:1.3 phpdoc-ja/reference/session/functions/session-id.xml:1.4 --- phpdoc-ja/reference/session/functions/session-id.xml:1.3 Thu Jul 3 20:06:49 2003 +++ phpdoc-ja/reference/session/functions/session-id.xml Sun Sep 5 00:11:47 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <!-- splitted from ./ja/functions/session.xml, last change in rev 1.1 --> -<!-- sync: 1.5 --> +<!-- sync: 1.8 --> <refentry id="function.session-id"> <refnamediv> <refname>session_id</refname> @@ -10,20 +10,25 @@ <title>説æ</title> <methodsynopsis> <type>string</type><methodname>session_id</methodname> - <methodparam><type>string</type><parameter> - <replaceable><optional>id</optional></replaceable> - </parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>id</parameter></methodparam> </methodsynopsis> <para> - <function>session_id</function>ã¯ãã«ã¬ã³ãã®ã»ãã·ã§ã³ã®ã»ãã·ã§ - ã³IDãè¿ãã¾ãã<parameter>id</parameter>ãæå®ãããå ´åãã«ã¬ã³ - ãã®ã»ãã·ã§ã³IDãç½®æãã¾ãããã®éã - <function>session_start</function>ããåã« - ã³ã¼ã«ããã¦ããå¿ è¦ãããã¾ãã + <function>session_id</function>ã¯ãã«ã¬ã³ãã®ã»ãã·ã§ã³ã®ã»ãã·ã§ã³IDã + è¿ãã¾ãã<parameter>id</parameter>ãæå®ãããå ´åãã«ã¬ã³ãã® + ã»ãã·ã§ã³IDãç½®æãã¾ãããã®éã + <function>session_start</function>ããåã«ã³ã¼ã«ããã¦ããå¿ è¦ãããã¾ãã ã»ãã·ã§ã³ãã³ãã©ã«ãã£ã¦ã¯ãã»ãã·ã§ã³IDã¨ãã¦ä½¿ç¨ã§ããæåã« å¶éãããå ´åãããã¾ããä¾ãã°ããã¡ã¤ã«ã«ããã»ãã·ã§ã³ãã³ãã©ã¯ ã»ãã·ã§ã³IDã¨ãã¦ä½¿ããæåã¯<literal>a-z, A-Z, 0-9</literal>ã«éããã¾ã! </para> + <note> + <simpara> + ã»ãã·ã§ã³ä¿æã«ã¯ããã¼ã使ç¨ãã¦ããå ´åã<function>session_id</function> + ã«ããã¦<parameter>id</parameter>弿°ãæå®ããã¨ã + ã«ã¬ã³ãã®ã»ãã·ã§ã³IDããã»ããããããã®ã¨ã¾ã£ããåä¸ã§ãããååã«é¢ãããã + <function>session_start</function>ãå¼ã³åºãããéã«å¸¸ã«æ°ããã¯ããã¼ãéä¿¡ããã¾ãã + </simpara> + </note> <para> ã«ã¬ã³ãã®ååã¨ã»ãã·ã§ã³IDããURLã«è¿½å å¯è½ãªæååã¨ãã¦åå¾ã ãããã«å®æ° <systemitem>SID</systemitem> ã使ç¨ãããã¨ãå¯è½ã§ãã http://cvs.php.net/diff.php/phpdoc-ja/reference/session/functions/session-name.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/session/functions/session-name.xml diff -u phpdoc-ja/reference/session/functions/session-name.xml:1.4 phpdoc-ja/reference/session/functions/session-name.xml:1.5 --- phpdoc-ja/reference/session/functions/session-name.xml:1.4 Thu Jul 3 20:06:49 2003 +++ phpdoc-ja/reference/session/functions/session-name.xml Sun Sep 5 00:11:47 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <!-- splitted from ./ja/functions/session.xml, last change in rev 1.3 --> -<!-- sync: 1.2 --> +<!-- sync: 1.4 --> <refentry id="function.session-name"> <refnamediv> <refname>session_name</refname> @@ -38,7 +38,7 @@ $previous_name = session_name("WebsiteID"); -echo "ååã®ã»ãã·ã§ã³åã¯ã$previous_name ã§ãã<p>"; +echo "ååã®ã»ãã·ã§ã³åã¯ã$previous_name ã§ãã<br />"; ?> ]]> </programlisting>