I launched an AWS EC2 instance with Ubuntu and installed Apache, MySQL and PHP 7. Everything working fine except the PHP session. This means I am able to log in & log out using the PHP session but the session does not expire automatically. This means If I log in today and shut down my machine and login again in the next day. my session persists. It never expires. Is there any configuration required to clear the session on idle time or anything?
The default session timeout is 30 minutes in PHP but it is not working.