Skip to content

Commit

Permalink
Changed unordered list to definition list
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronofuentes committed Dec 17, 2014
1 parent bd44e6b commit 1d571ca
Showing 1 changed file with 41 additions and 41 deletions.
82 changes: 41 additions & 41 deletions components/http_foundation/sessions.rst
Expand Up @@ -67,71 +67,71 @@ as follows divided into a couple of groups.

Session workflow

* :method:`Symfony\\Component\\HttpFoundation\\Session\\Session::start`:
Starts the session - do not use ``session_start()``;
:method:`Symfony\\Component\\HttpFoundation\\Session\\Session::start`
Starts the session - do not use ``session_start()``.

* :method:`Symfony\\Component\\HttpFoundation\\Session\\Session::migrate`:
Regenerates the session ID - do not use ``session_regenerate_id()``.
This method can optionally change the lifetime of the new cookie that will
be emitted by calling this method;
:method:`Symfony\\Component\\HttpFoundation\\Session\\Session::migrate`
Regenerates the session ID - do not use ``session_regenerate_id()``.
This method can optionally change the lifetime of the new cookie that will
be emitted by calling this method.

* :method:`Symfony\\Component\\HttpFoundation\\Session\\Session::invalidate`:
Clears all session data and regenerates session ID. Do not use ``session_destroy()``;
:method:`Symfony\\Component\\HttpFoundation\\Session\\Session::invalidate`
Clears all session data and regenerates session ID. Do not use ``session_destroy()``.

* :method:`Symfony\\Component\\HttpFoundation\\Session\\Session::getId`: Gets the
session ID. Do not use ``session_id()``;
:method:`Symfony\\Component\\HttpFoundation\\Session\\Session::getId`
Gets the session ID. Do not use ``session_id()``.

* :method:`Symfony\\Component\\HttpFoundation\\Session\\Session::setId`: Sets the
session ID. Do not use ``session_id()``;
:method:`Symfony\\Component\\HttpFoundation\\Session\\Session::setId`
Sets the session ID. Do not use ``session_id()``.

* :method:`Symfony\\Component\\HttpFoundation\\Session\\Session::getName`: Gets the
session name. Do not use ``session_name()``;
:method:`Symfony\\Component\\HttpFoundation\\Session\\Session::getName`
Gets the session name. Do not use ``session_name()``.

* :method:`Symfony\\Component\\HttpFoundation\\Session\\Session::setName`: Sets the
session name. Do not use ``session_name()``.
:method:`Symfony\\Component\\HttpFoundation\\Session\\Session::setName`
Sets the session name. Do not use ``session_name()``.

Session attributes

* :method:`Symfony\\Component\\HttpFoundation\\Session\\Session::set`:
Sets an attribute by key;
:method:`Symfony\\Component\\HttpFoundation\\Session\\Session::set`
Sets an attribute by key.

* :method:`Symfony\\Component\\HttpFoundation\\Session\\Session::get`:
Gets an attribute by key;
:method:`Symfony\\Component\\HttpFoundation\\Session\\Session::get`
Gets an attribute by key.

* :method:`Symfony\\Component\\HttpFoundation\\Session\\Session::all`:
Gets all attributes as an array of key => value;
:method:`Symfony\\Component\\HttpFoundation\\Session\\Session::all`
Gets all attributes as an array of key => value.

* :method:`Symfony\\Component\\HttpFoundation\\Session\\Session::has`:
Returns true if the attribute exists;
:method:`Symfony\\Component\\HttpFoundation\\Session\\Session::has`
Returns true if the attribute exists.

* :method:`Symfony\\Component\\HttpFoundation\\Session\\Session::replace`:
Sets multiple attributes at once: takes a keyed array and sets each key => value pair;
:method:`Symfony\\Component\\HttpFoundation\\Session\\Session::replace`
Sets multiple attributes at once: takes a keyed array and sets each key => value pair;

* :method:`Symfony\\Component\\HttpFoundation\\Session\\Session::remove`:
Deletes an attribute by key;
:method:`Symfony\\Component\\HttpFoundation\\Session\\Session::remove`
Deletes an attribute by key;

* :method:`Symfony\\Component\\HttpFoundation\\Session\\Session::clear`:
Clear all attributes.
:method:`Symfony\\Component\\HttpFoundation\\Session\\Session::clear`
Clear all attributes.

The attributes are stored internally in a "Bag", a PHP object that acts like
an array. A few methods exist for "Bag" management:

* :method:`Symfony\\Component\\HttpFoundation\\Session\\Session::registerBag`:
Registers a :class:`Symfony\\Component\\HttpFoundation\\Session\\SessionBagInterface`;
:method:`Symfony\\Component\\HttpFoundation\\Session\\Session::registerBag`
Registers a :class:`Symfony\\Component\\HttpFoundation\\Session\\SessionBagInterface`.

* :method:`Symfony\\Component\\HttpFoundation\\Session\\Session::getBag`:
Gets a :class:`Symfony\\Component\\HttpFoundation\\Session\\SessionBagInterface` by
bag name;
:method:`Symfony\\Component\\HttpFoundation\\Session\\Session::getBag`
Gets a :class:`Symfony\\Component\\HttpFoundation\\Session\\SessionBagInterface` by
bag name;

* :method:`Symfony\\Component\\HttpFoundation\\Session\\Session::getFlashBag`:
Gets the :class:`Symfony\\Component\\HttpFoundation\\Session\\Flash\\FlashBagInterface`.
This is just a shortcut for convenience.
:method:`Symfony\\Component\\HttpFoundation\\Session\\Session::getFlashBag`
Gets the :class:`Symfony\\Component\\HttpFoundation\\Session\\Flash\\FlashBagInterface`.
This is just a shortcut for convenience.

Session metadata

* :method:`Symfony\\Component\\HttpFoundation\\Session\\Session::getMetadataBag`:
Gets the :class:`Symfony\\Component\\HttpFoundation\\Session\\Storage\\MetadataBag`
which contains information about the session.
:method:`Symfony\\Component\\HttpFoundation\\Session\\Session::getMetadataBag`
Gets the :class:`Symfony\\Component\\HttpFoundation\\Session\\Storage\\MetadataBag`
which contains information about the session.

Session Data Management
~~~~~~~~~~~~~~~~~~~~~~~
Expand Down

0 comments on commit 1d571ca

Please sign in to comment.