Correct `general_cookies_domain_help`.
Rename `general_session_max_lifetime` to `general_login_expire_days`.
Refactor `updateCookie`.
Add hook to set default cookies domain from global setting.
Default cookies "path" to "/" if not set explicitly.
Remove unnecessary code.
Drop `env.extras.updateCookie`.