修改 /usr/share/openstack-dashboard/openstack_dashboard/settings.py 文件:
SESSION_ENGINE = 'django.contrib.sessions.backends.signed_cookies'
SESSION_COOKIE_HTTPONLY = True
SESSION_EXPIRE_AT_BROWSER_CLOSE = False
SESSION_COOKIE_SECURE = False
#SESSION_TIMEOUT = 1800
SESSION_TIMEOUT = 86400
SESSION_COOKIE_AGE = 86400
然后重启httpd服务
systemctl restart httpd
这样修改,一天内dashboard都不再需要输入用户名密码