Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1d571ca

Browse filesBrowse files
Changed unordered list to definition list
1 parent bd44e6b commit 1d571ca
Copy full SHA for 1d571ca

File tree

Expand file treeCollapse file tree

1 file changed

+41
-41
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+41
-41
lines changed

‎components/http_foundation/sessions.rst

Copy file name to clipboardExpand all lines: components/http_foundation/sessions.rst
+41-41Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -67,71 +67,71 @@ as follows divided into a couple of groups.
6767

6868
Session workflow
6969

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

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

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

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

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

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

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

9393
Session attributes
9494

95-
* :method:`Symfony\\Component\\HttpFoundation\\Session\\Session::set`:
96-
Sets an attribute by key;
95+
:method:`Symfony\\Component\\HttpFoundation\\Session\\Session::set`
96+
Sets an attribute by key.
9797

98-
* :method:`Symfony\\Component\\HttpFoundation\\Session\\Session::get`:
99-
Gets an attribute by key;
98+
:method:`Symfony\\Component\\HttpFoundation\\Session\\Session::get`
99+
Gets an attribute by key.
100100

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

104-
* :method:`Symfony\\Component\\HttpFoundation\\Session\\Session::has`:
105-
Returns true if the attribute exists;
104+
:method:`Symfony\\Component\\HttpFoundation\\Session\\Session::has`
105+
Returns true if the attribute exists.
106106

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

110-
* :method:`Symfony\\Component\\HttpFoundation\\Session\\Session::remove`:
111-
Deletes an attribute by key;
110+
:method:`Symfony\\Component\\HttpFoundation\\Session\\Session::remove`
111+
Deletes an attribute by key;
112112

113-
* :method:`Symfony\\Component\\HttpFoundation\\Session\\Session::clear`:
114-
Clear all attributes.
113+
:method:`Symfony\\Component\\HttpFoundation\\Session\\Session::clear`
114+
Clear all attributes.
115115

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

119-
* :method:`Symfony\\Component\\HttpFoundation\\Session\\Session::registerBag`:
120-
Registers a :class:`Symfony\\Component\\HttpFoundation\\Session\\SessionBagInterface`;
119+
:method:`Symfony\\Component\\HttpFoundation\\Session\\Session::registerBag`
120+
Registers a :class:`Symfony\\Component\\HttpFoundation\\Session\\SessionBagInterface`.
121121

122-
* :method:`Symfony\\Component\\HttpFoundation\\Session\\Session::getBag`:
123-
Gets a :class:`Symfony\\Component\\HttpFoundation\\Session\\SessionBagInterface` by
124-
bag name;
122+
:method:`Symfony\\Component\\HttpFoundation\\Session\\Session::getBag`
123+
Gets a :class:`Symfony\\Component\\HttpFoundation\\Session\\SessionBagInterface` by
124+
bag name;
125125

126-
* :method:`Symfony\\Component\\HttpFoundation\\Session\\Session::getFlashBag`:
127-
Gets the :class:`Symfony\\Component\\HttpFoundation\\Session\\Flash\\FlashBagInterface`.
128-
This is just a shortcut for convenience.
126+
:method:`Symfony\\Component\\HttpFoundation\\Session\\Session::getFlashBag`
127+
Gets the :class:`Symfony\\Component\\HttpFoundation\\Session\\Flash\\FlashBagInterface`.
128+
This is just a shortcut for convenience.
129129

130130
Session metadata
131131

132-
* :method:`Symfony\\Component\\HttpFoundation\\Session\\Session::getMetadataBag`:
133-
Gets the :class:`Symfony\\Component\\HttpFoundation\\Session\\Storage\\MetadataBag`
134-
which contains information about the session.
132+
:method:`Symfony\\Component\\HttpFoundation\\Session\\Session::getMetadataBag`
133+
Gets the :class:`Symfony\\Component\\HttpFoundation\\Session\\Storage\\MetadataBag`
134+
which contains information about the session.
135135

136136
Session Data Management
137137
~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.