Skip to content

Commit bf4ce18

Browse files
committed
removed deprecated cookie config options
1 parent ac9fbcd commit bf4ce18

File tree

2 files changed

+12
-42
lines changed

2 files changed

+12
-42
lines changed

cookbook/configuration/pdo_session_storage.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ configuration format of your choice):
5454
5555
<!-- app/config/config.xml -->
5656
<framework:config>
57-
<framework:session handler-id="session.handler.pdo" lifetime="3600" auto-start="true"/>
57+
<framework:session handler-id="session.handler.pdo" session-lifetime="3600" auto-start="true"/>
5858
</framework:config>
5959
6060
<parameters>
@@ -196,16 +196,16 @@ For MSSQL, the statement might look like the following:
196196
.. code-block:: sql
197197
198198
CREATE TABLE [dbo].[session](
199-
[session_id] [nvarchar](255) NOT NULL,
200-
[session_value] [ntext] NOT NULL,
199+
[session_id] [nvarchar](255) NOT NULL,
200+
[session_value] [ntext] NOT NULL,
201201
[session_time] [int] NOT NULL,
202-
PRIMARY KEY CLUSTERED(
203-
[session_id] ASC
204-
) WITH (
205-
PAD_INDEX = OFF,
206-
STATISTICS_NORECOMPUTE = OFF,
207-
IGNORE_DUP_KEY = OFF,
208-
ALLOW_ROW_LOCKS = ON,
209-
ALLOW_PAGE_LOCKS = ON
210-
) ON [PRIMARY]
202+
PRIMARY KEY CLUSTERED(
203+
[session_id] ASC
204+
) WITH (
205+
PAD_INDEX = OFF,
206+
STATISTICS_NORECOMPUTE = OFF,
207+
IGNORE_DUP_KEY = OFF,
208+
ALLOW_ROW_LOCKS = ON,
209+
ALLOW_PAGE_LOCKS = ON
210+
) ON [PRIMARY]
211211
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

reference/configuration/framework.rst

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,6 @@ session
131131
cookie_lifetime
132132
...............
133133

134-
.. versionadded:: 2.1
135-
This option was formerly known as ``lifetime``
136-
137134
**type**: ``integer`` **default**: ``0``
138135

139136
This determines the lifetime of the session - in seconds. By default it will use
@@ -142,19 +139,13 @@ This determines the lifetime of the session - in seconds. By default it will use
142139
cookie_path
143140
...........
144141

145-
.. versionadded:: 2.1
146-
This option was formerly known as ``path``
147-
148142
**type**: ``string`` **default**: ``/``
149143

150144
This determines the path to set in the session cookie. By default it will use ``/``.
151145

152146
cookie_domain
153147
.............
154148

155-
.. versionadded:: 2.1
156-
This option was formerly known as ``domain``
157-
158149
**type**: ``string`` **default**: ``''``
159150

160151
This determines the domain to set in the session cookie. By default it's blank,
@@ -164,19 +155,13 @@ to the cookie specification.
164155
cookie_secure
165156
.............
166157

167-
.. versionadded:: 2.1
168-
This option was formerly known as ``secure``
169-
170158
**type**: ``Boolean`` **default**: ``false``
171159

172160
This determines whether cookies should only be sent over secure connections.
173161

174162
cookie_httponly
175163
...............
176164

177-
.. versionadded:: 2.1
178-
This option was formerly known as ``httponly``
179-
180165
**type**: ``Boolean`` **default**: ``false``
181166

182167
This determines whether cookies should only accesible through the HTTP protocol.
@@ -429,21 +414,6 @@ Full Default Configuration
429414
gc_maxlifetime: ~
430415
save_path: %kernel.cache_dir%/sessions
431416
432-
# DEPRECATED! Please use: cookie_lifetime
433-
lifetime: ~
434-
435-
# DEPRECATED! Please use: cookie_path
436-
path: ~
437-
438-
# DEPRECATED! Please use: cookie_domain
439-
domain: ~
440-
441-
# DEPRECATED! Please use: cookie_secure
442-
secure: ~
443-
444-
# DEPRECATED! Please use: cookie_httponly
445-
httponly: ~
446-
447417
# templating configuration
448418
templating:
449419
assets_version: ~

0 commit comments

Comments
 (0)