I'm thinking about adding some handling to the
settings.php code, to set the
ini_set('session.gc_maxlifetime', 2880); value based on the role of the logged it (or not logged in) user.
i.e. for admin role, moderator role, I'd set a real long value so as to basically not ever get logged out due to idling too long, while writing a long article, or whatever, while for "lesser" roles, like a regular member, they'll get a regular, shorter
My 2 questions:
1) Is the
Global $user var available within
settings.php, so I can check it for the user's roles?
2) How often does it get called? Only once during initial site load? Or every time a user loads a page? I don't want to be (re)setting the value every time a page loads.