session_gc

PHP 7 >= 7.1.0, PHP 8
session_gc - Perform session data garbage collection
Manual
Code Examples

Example #1 session_gc example for task managers like cron

PHP Version:

Example #2 session_gc example for user accessible script

PHP Version: