What class should I override to change session settings and how to add it?

Thank you for your answer, how can I add extra custom keys like time though, just put a name and a value in the ->set function?