@@ -153,51 +153,6 @@ function session_reset(): void
153
153
}
154
154
155
155
156
- /**
157
- * Set cookie parameters defined in the php.ini file. The effect of this
158
- * function only lasts for the duration of the script. Thus, you need to
159
- * call session_set_cookie_params for every request and
160
- * before session_start is called.
161
- *
162
- * This function updates the runtime ini values of the corresponding PHP ini configuration
163
- * keys which can be retrieved with the ini_get.
164
- *
165
- * @param int $lifetime Lifetime of the
166
- * session cookie, defined in seconds.
167
- * @param string $path Path on the domain where
168
- * the cookie will work. Use a single slash ('/') for all paths on the
169
- * domain.
170
- * @param string|null $domain Cookie domain, for
171
- * example 'www.php.net'. To make cookies visible on all subdomains then
172
- * the domain must be prefixed with a dot like '.php.net'.
173
- * @param bool $secure If TRUE cookie will only be sent over
174
- * secure connections.
175
- * @param bool $httponly If set to TRUE then PHP will attempt to send the
176
- * httponly
177
- * flag when setting the session cookie.
178
- * @throws SessionException
179
- *
180
- */
181
- function session_set_cookie_params (int $ lifetime , string $ path = null , string $ domain = null , bool $ secure = false , bool $ httponly = false ): void
182
- {
183
- error_clear_last ();
184
- if ($ httponly !== false ) {
185
- $ result = \session_set_cookie_params ($ lifetime , $ path , $ domain , $ secure , $ httponly );
186
- } elseif ($ secure !== false ) {
187
- $ result = \session_set_cookie_params ($ lifetime , $ path , $ domain , $ secure );
188
- } elseif ($ domain !== null ) {
189
- $ result = \session_set_cookie_params ($ lifetime , $ path , $ domain );
190
- } elseif ($ path !== null ) {
191
- $ result = \session_set_cookie_params ($ lifetime , $ path );
192
- } else {
193
- $ result = \session_set_cookie_params ($ lifetime );
194
- }
195
- if ($ result === false ) {
196
- throw SessionException::createFromPhpError ();
197
- }
198
- }
199
-
200
-
201
156
/**
202
157
* session_unregister unregisters the global variable
203
158
* named name from the current session.
0 commit comments