Im using PHP 5.6 on my localhost and 7 on webfaction. When I try to logout from my application on localhost, its fine, but on webfaction, I get Warning: session_destroy(): Session callback expects true/false return value in /home/username/webapps/app-name/app/Login.php on line 67 Warning: session_destroy(): Session object destruction failed in /home/username/webapps/app-name/app/Login.php on line 67 Line 67 in Login.php is session_destroy(); (It contains the code for logout too)
I checked http://php.net/manual/en/function.session-destroy.php - there hasn't been any change for PHP 7 - so why am I getting this warning ? asked 22 Apr '16, 10:50 anjanesh |
Is your 'session.save_path' set to your home directory? If not I would highly recommend creating a 'tmp' directory in your home directory and setting the sessions to be stored there. There should be no issue using session_destroy(). answered 22 Apr '16, 11:53 aaront ♦♦ My sessions are stored in the database and in the file system. https://github.com/anjanesh/CB/blob/master/Session.php
(22 Apr '16, 13:29)
anjanesh
Please open a support ticket so we can look at the issue directly on your account.
(22 Apr '16, 13:46)
aaront ♦♦
My sessions are stored in the database and not in the file system.
(22 Apr '16, 15:41)
anjanesh
|