As part of PHP’s support for sessions, there are over 20 different configuration options you can set for how PHP handles sessions. Here I’ll highlight a few of the most important ones here. Note two rules about changing the session settings:
1. All changes must be made before calling session_start().
2. The same changes must be made on every page that uses sessions.