1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-11 01:04:16 +02:00

Various minor adjustments

This commit is contained in:
Ryan Cramer
2019-02-08 14:46:20 -05:00
parent 5b45d17991
commit 65454985b1
4 changed files with 8 additions and 3 deletions

View File

@@ -247,8 +247,8 @@ $config->sessionExpireSeconds = 86400;
* // if there is a session cookie, a session is likely already in use so keep it going
* if($session->hasCookie()) return true;
*
* // if URL is an admin URL, allow session
* if(strpos($_SERVER['REQUEST_URI'], $session->config->urls->admin) === 0) return true;
* // if URL is an admin URL, allow session (replace /processwire/ with your admin URL)
* if(strpos($_SERVER['REQUEST_URI'], '/processwire/) === 0) return true;
*
* // otherwise disallow session
* return false;