Description of problem and question about session functionality by session noob:
The "session_start()" function creates a session file that is stored in the "tmp" directory on my hosting server. The session file looks something like this:
sess_fd52e0af6f329e84b0b9bfa2f23190a9
I need to somehow automatically delete the session files (like the one above) from the "tmp" directory folder on the server.
The PHP Configuration Core page on the server says that the "session.gc_maxlifetime" is set at 1440 for both the Local Value and the Master Value.
The PHP Manual says:
"session.gc_maxlifetime specifies the number of seconds after which data will be seen as 'garbage' and cleaned up."
I'm wondering if the session.gc_maxlifetime setting on my hosting server denotes how many seconds that the session file in the "tmp" directory is supposed to stay there until it expires - or if it means how many seconds the variables will remain until they are "cleaned up" or expire?
If it means the number of seconds until the session file in the "tmp" directory will remain there until it expires then it's not working. Session files in the "tmp" directory will remain there indefinitely unless I manually delete them.
Does anybody know how I can get the session files in the "tmp" directory to automatically expire without my having to manually delete them?
Thanks.
Volitics