527 Commits

Author SHA1 Message Date
Mikhail Alferov
d7a77b5f85 session-name.xml: use the correct directive name and add the link to (GH-3642)
There is no directive `session.transid` in PHP. It's probably about the `session.use_trans_sid` directive instead `session.transid`, if I got the context right

Co-authored-by: Kamil Tekiela <tekiela246@gmail.com>
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2024-10-08 12:02:56 +02:00
Mikhail Alferov
f5c124befd session-create-id.xml: preg_* functions style for range (#3651) 2024-10-08 00:44:40 +02:00
Tim MacDonald
8859c8b96c Standardise casting spacing (#2717) 2024-09-11 14:29:15 +01:00
Jorg Adam Sowa
be3a4367c9 Update invalid values of session gc ini settings. (#3657)
* Information about invalid values of session gc ini settings.

* Update reference/session/ini.xml

Co-authored-by: Gina Peter Banyard <girgias@php.net>

* Update reference/session/ini.xml

Co-authored-by: Gina Peter Banyard <girgias@php.net>

---------

Co-authored-by: Gina Peter Banyard <girgias@php.net>
2024-09-11 14:26:00 +01:00
Mikhail Alferov
8029731344 session-save-path.xml: remove mention of obsolete file systems (GH-3655) 2024-08-20 13:19:09 +02:00
Mikhail Alferov
b9c73a59a8 session-regenerate-id.xml: add missing space character (GH-3653) 2024-08-13 10:55:56 +02:00
Mikhail Alferov
be8baf89c0 session-gc.xml: add a missing space character (GH-3652) 2024-08-12 01:12:31 +02:00
Jorg Adam Sowa
a846e49f6e Document maximum length of prefix in session_create_id (GH-3650) 2024-08-11 13:12:18 +02:00
haszi
48ce43fe79 Remove empty resources pages (#3545)
Co-authored-by: haszi <haszika80@gmail.com>
2024-07-26 02:17:29 +01:00
Gina Peter Banyard
4d17b7b494 [skip-revcheck] Convert class markup to be compatible with DocBook 5.2
Closes GH-3415
2024-06-14 17:04:53 +01:00
Takuya Aramaki
927c3d9ef7 Remove outdated header fields of session_cache_limiter (#3361)
IE5-specific fields of `Cache-Control` header were removed
in PHP 7.0.
413d23f6f0
2024-04-30 21:41:06 +01:00
Gina Peter Banyard
62126c55f1 Minor markup issue fixups 2024-04-22 13:25:39 +01:00
Nikolay Nikolaev
d8bc36d413 Fix typos in session reference (#3201) 2024-02-23 15:19:33 +01:00
Gina Peter Banyard
d4d5216e7a [skip-revcheck] Replace PHP_INI_* with INI_* constants
Performed via a bash script which can be found on PR GH-3140

Closes GH-3140

Co-authored-by: haszi <haszika80@gmail.com>
2024-01-26 14:00:36 +00:00
Derick Rethans
cfcad8e347 Clarify what 'cookie_secure' actually means 2023-12-18 14:16:07 +00:00
Adiel Cristo
a7d56396b4 Use entity installation.enabled.disable on installation section (#2808)
Co-authored-by: Adiel Cristo <adiel@php.net>
2023-09-28 14:54:03 +01:00
Alex Theobold
ba6a83ca35 Remove session_register() references (#2746)
Closes GH-2730
2023-09-08 12:18:41 +01:00
Máté Kocsis
14767af0f0 Use new class synopsis markup (#2611)
Follow-up on https://github.com/php/phd/pull/77
2023-08-30 12:28:30 +01:00
Máté Kocsis
9eb4a46bba Use new class synopsis markup for interfaces (#2620) 2023-07-29 05:55:01 +01:00
Máté Kocsis
96a8379cd8 Render interfaces according to the new PhD format (#2556)
According to https://github.com/php/phd/pull/75
2023-07-04 20:35:33 +01:00
George Peter Banyard
ccb3794945 Fix session security docs markup and wording (#2537) 2023-06-24 15:39:00 +01:00
Kamil Tekiela
682510e91d Modernize note about session_unset (#2259)
* Remove unclear note from session_destroy
* Add caution to session_unset
2023-02-21 14:58:00 +00:00
Tim Düsterhus
6e69d9342e Use FQCN for native attributes (#2137)
* Use FQCN for native attributes

For attributes, it's non-obvious that they need to be imported with `use` or
referenced with their FQCN, because applying a non-existent attribute is not an
error.

Make the examples copy-and-paste safe by adding the leading backslash, as
already done for `#[\SensitiveParameterValue]`.
2023-01-04 16:20:00 +00:00
Máté Kocsis
601f6f4ce5 Update ext/session role attributes (#1987) 2022-12-11 16:06:18 +01:00
Tim Düsterhus
2ab45105b4 Stop referring to openssl_random_pseudo_bytes() outside of ext/openssl (#1967)
* random: Remove openssl_random_pseudo_bytes() from caution.cryptographically-insecure

The `random_bytes()` and `random_int()` alternatives are available since since
PHP 7.0, are available by default and directly map to the OS' CSPRNG and thus
are likely more secure.

Thus this commit stops mentioning `openssl_random_pseudo_bytes()` as a possible
option any more to keep things simple for the reader.

* random: Remove `openssl_random_pseudo_bytes()` from “See Also” sections for ext/random

The reasoning as with the previous commit applies.

* hash: Replace `openssl_random_pseudo_bytes()` by `random_bytes()`

* session: Replace `openssl_random_pseudo_bytes()` by `random_bytes()`
2022-11-10 14:08:01 +01:00
George Peter Banyard
8a152ef592 Rewrite outdated note for session_unset() (#1940)
This was meant to be used when $HTTP_SESSION_VARS was still around
2022-11-04 14:22:58 +00:00
Martin Samesch
6d1ca753fb [skip-revcheck] Fix typos 2022-09-02 15:20:37 +02:00
Martin Samesch
281d618901 [skip-revcheck] Fix typo 2022-08-26 14:20:50 +02:00
php4fan
aaabaa98a8 Added gc_maxlifetime default value to description (#1592)
For consistency with all other constants, where the default value is also mentioned in the description so you don't have to go back to the table to look it up.
2022-07-08 18:08:49 +01:00
Jordi Boggiano
6b0ab29716 Fix ini name
Closes GH-1376.
2022-02-04 17:04:39 +01:00
Christoph M. Becker
e8fbdb2fe6 Update defaults of session.cookie_secure and .cookie_httponly
That's rather a cosmetic change, but we still should strive to be
precise.
2022-01-11 15:43:31 +01:00
Máté Kocsis
591a6aa1de Display SessionUpdateTimestampHandlerInterface as an interface rather than a class
Closes GH-1107.
2021-12-15 18:33:43 +01:00
Máté Kocsis
4eb60e8132 [skip-revcheck] Generate ext/session class synopses from stubs 2021-12-15 18:32:56 +01:00
Christoph M. Becker
d1c3de7ae6 Update sessionhandlerinterface example for PHP 8.1
We require suitable return types or the ReturnTypeWillChange attribute
as of PHP 8.1.0.  We specify the return types where supported as of PHP
7.0.0, but go with the attribute for the union types.

Cf. <https://github.com/php/doc-en/issues/1090>.
2021-11-15 17:05:31 +01:00
Máté Kocsis
b0b19b6618 Generate methodsynopses based on stubs for recent changes (#903) 2021-10-01 17:23:05 +02:00
Máté Kocsis
35b57d9df0 Remove some unnecessary abstract modifier from methodsynopses (#914) 2021-09-14 12:43:32 +01:00
Máté Kocsis
ab57ab6849 Mark a few interfaces as oointerface rather than ooclass (#818) 2021-07-30 17:01:16 +02:00
othercorey
04a6d30dc1 Update return type for SessionHandlerInterface::gc() (#704)
The type is `int|false` but documented as `int|bool`.
2021-07-11 18:23:12 +01:00
Sergey Panteleev
35b95a56cc Fix issues in Session directory
Part of #658
2021-06-09 12:05:20 +03:00
Máté Kocsis
80446d37cb Fix return value description of SessionHandlerInterface::read()
Closes GH-654.
2021-06-04 11:07:29 +02:00
Máté Kocsis
1367cac761 Update the methodsynopsis of some recently changed stubs
Closes GH-625.
2021-05-24 23:29:02 +02:00
Sergey Panteleev
184f3f7bd4 Remove PHP 5, 7 references (#565) 2021-05-12 14:49:16 +03:00
Yoshinari Takaoka
e5d4a8419d remove already deleted session function on PHP 5.4.0 (#583) 2021-05-03 23:44:04 +09:00
Sergey Panteleev
a0ae28d3bc Removed references to PHP 5, PHP 7.0 (#545) 2021-04-24 20:01:17 +03:00
Sergey Panteleev
aab33d6443 Removed references to PHP 5, PHP 7.0 (#544) 2021-04-23 11:35:26 +03:00
Sergey Panteleev
5fabd07880 Removed Changelog entries for PHP 5, PHP 7.0 (#543) 2021-04-22 17:52:58 +03:00
Christoph M. Becker
3e08a8aae6 Remove obsolete PHP 5 related info from ini.core and related pages 2021-02-24 14:32:08 +01:00
Christoph M. Becker
7dc5a6466b Fix #80677: session.cookie_samesite missing from INI list
We should not duplicate the info in the general INI list, but rather
include it from the session configuration.

While we're at it, we remove obsolete changelog entries, fix the
wording ("as of" instead of "since"), and remove the url_rewriter.tags
entry from the session configuration page.
2021-01-28 12:05:05 +01:00
Christoph M. Becker
b41704883c Remove irrelevant entries from session/versions.xml
`session_register()` and friends are removed as of PHP 5.4.0.
`sessionhandler::updatetimestamp()` and `sessionhandler::validateid()`
did never exist; these are methods of `sessionupdatetimestamphandlerinterface`.
2021-01-18 13:29:02 +01:00
Yoshinari Takaoka
ac2a89fe0f Added PHP 8 into versions.xml for session based on stubs.
Closes GH-355.
2021-01-18 13:26:14 +01:00