This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Has anyone else noticed this?
Build 376. Might have happened with older builds too. Browser Chromium v.53
Sequence to reproduce:
- Log in to backend.
- Do stuff...
- Log out ('Sign out')
- October shows Log in screen
- Shut down OS without shutting down browser
- Reboot
- Re-start browser
- Go to http://TLD/backend
- Already logged in! (sometimes)
I noticed this too. i log out and it takes me to the login screen, but hit enter with no credentials and the session is still alive.
the offending code for this issue is vendor/october/rain/src/Auth/Manager.php line 448:
Session::forget($this->sessionKey);
Cookie::queue(Cookie::forget($this->sessionKey));
The solution I used was is to create a new plugin to manage my backend layout and methods:
php artisan create:plugin Acme.BackEndSkin
create a new controller for Auth in your plugin
php artisan create:controller Acme.BackEndSkin Auth
Extend that controller with Backend\Controllers\Auth and then create a signout method
public function signout()
{
BackendAuth::logout();
Session::flush();
return Backend::redirect('backend');
}
Then copy the folder from backend/skins/
cp -r ./backend/skins ./plugins/acme/backendskin/skins
Then modify the logout link in _mainmenu.htm to somenthing like this
a href="<?= Backend::url('acme/backendskin/auth/signout') ?>"
next create new class that extends Backend\Skins\Standard
namespace Acme\BackendSkin\Skins;
use Backend\Skins\Standard;
class BackendSkin extends Standard
{
public function getLayoutPaths()
{
return [base_path() . '/plugins/acme/backendskin/layouts',
$this- >skinPath.'/layouts'];
}
}
then open up your config/cms.php
//'backendSkin' => 'Backend\Skins\Standard',
'backendSkin' => 'Acme\BackendSkin\Skins\BackendSkin',
It looks like more work than it is, and when you are done you will now have the ability to customize the backend till your heart is content.
Last updated
1-3 of 3