Search code examples
phpcookiessession-cookiestiki-wiki

"Remember me" feature for login in TikiWiki site not working


I recently upgraded my site's installation of Tiki Wiki CMS Groupware from version 25 to version 27. I also upgraded PHP version from 7.4 to 8.3. Now the "Remember me" feature is not working and every time I visit my site I have to login again in my admin account. I tried it with different browsers and even on different computers. It is the same for other users of the site; if they return few hours later they have to login again.

I already increased those directives in php.ini but without any effect:

  • session.cache_expire
  • session.gc_maxlifetime
  • session.cookie_lifetime

Any idea what might be causing the problem or how can I debug it?

EDIT: Added my Tiki configuration relevant to this issue:

TikiWiki cookie configuration


Solution

  • There could be other causes for this, but if:

    • it happens following an upgrade from Tiki 25 or anterior (and perhaps 26)
    • 2 or 3 "get_user_by_cookie failed" messages are logged (tiki-syslog.php) every time you go to the site and Tiki fails to remember you
    • and your "Session storage location" preference is set to Default

    …then changing it to Database should workaround. That preference (session_storage) is shown in the General control panel, in the second tab (General Settings).

    Credits

    This solution was provided by Georgi Bonchev himself. It worked for him and my own site.

    Session storage location preference