mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-22 05:15:29 +09:00
Do not refresh session keys over POST
This commit is contained in:
parent
a6fee16b68
commit
dea757cfb7
1 changed files with 6 additions and 0 deletions
|
|
@ -188,6 +188,12 @@ class Session
|
||||||
$must_create = true;
|
$must_create = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If this is not a GET request, do not refresh now.
|
||||||
|
if ($_SERVER['REQUEST_METHOD'] !== 'GET')
|
||||||
|
{
|
||||||
|
$must_refresh = false;
|
||||||
|
}
|
||||||
|
|
||||||
// Create or refresh the session if needed.
|
// Create or refresh the session if needed.
|
||||||
if ($must_create)
|
if ($must_create)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue