[pmwiki-users] I want to auth based on pre-existing _SESSION variable with name in it.
Christopher Cox
chriscox at endlessnow.com
Sat Sep 26 20:52:32 PDT 2026
On 9/26/26 10:46 PM, Petko Yotov wrote:
> On 27/09/2026 04:34, Christopher Cox wrote:
>> I get an error: PHP Warning: Undefined global variable $_SESSION in /var/www/
>> agora/pmwiki/local/config.php on line 56
>
> Add before the conditional:
> pm_session_start();
>
> If you later define any of these $EnableCookieSecure, $EnableCookieHTTPOnly,
> $CookieSameSite, they should be moved before pm_session_start().
>
> Petko
>
Just to add, I added session_start, but will change to pm_session_start, I also
added $AuthUser[$session_user] = true; in the conditional.
More information about the pmwiki-users
mailing list