mirror of
https://github.com/php/doc-it.git
synced 2026-03-24 15:42:46 +01:00
git-svn-id: https://svn.php.net/repository/phpdoc/it/trunk@314556 c90b9560-bf6c-de11-be94-00142212c4b1
74 lines
2.4 KiB
XML
74 lines
2.4 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!-- splitted from ./it/functions/session.xml, last change in rev 1.1 -->
|
|
<!-- last change to 'session-start' in en/ tree in rev 1.2 -->
|
|
<!-- EN-Revision: n/a Maintainer: penzo Status: ready -->
|
|
<!-- OLD-Revision: 1.83/EN.1.2 -->
|
|
<refentry xml:id="function.session-start" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>session_start</refname>
|
|
<refpurpose>Inizializza i dati di sessione</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>Descrizione</title>
|
|
<methodsynopsis>
|
|
<type>bool</type><methodname>session_start</methodname>
|
|
<void/>
|
|
</methodsynopsis>
|
|
<simpara>
|
|
<function>session_start</function> creauna sessione (o riprende
|
|
quella corrente basata sull'id di sessione che viene passato attraverso
|
|
una variabile GET o un cookie.
|
|
</simpara>
|
|
<simpara>
|
|
Se volete usare usare una sessione con un nome, dovete chiamare
|
|
<function>session_name</function> prima di
|
|
<function>session_start</function>.
|
|
</simpara>
|
|
<simpara>
|
|
Questa funzione ritorna sempre &true;.
|
|
</simpara>
|
|
<note>
|
|
<para>
|
|
Se state usando una sessione basata sui cookie, dovete chiamare
|
|
<function>session_start</function> prima di qualsiasi altro output al
|
|
browser.
|
|
</para>
|
|
</note>
|
|
<simpara>
|
|
<function>session_start</function> registrerà un handler interno di output
|
|
per riscrivere l'URL quando <literal>trans-sid</literal> è attivato.
|
|
Se l'utente usa <literal>ob_gzhandler</literal> o come
|
|
con <function>ob_start</function>, l'ordine dell'handler di output
|
|
è importante per un giusto output. Per esempio, l'utente deve registrare
|
|
<literal>ob_gzhandler</literal> prima che la sessione cominci.
|
|
</simpara>
|
|
<note>
|
|
<simpara>
|
|
L'uso di <literal>zlib.output_compression</literal> è raccomandato
|
|
più che di <literal>ob_gzhandler</literal>
|
|
</simpara>
|
|
</note>
|
|
</refsect1>
|
|
</refentry>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|