Golam Kibria - 2023-09-23

Im currently using session to authenticate. I wants to logout inactive users after 15 minutes. What is the process of updating the session timeout?
I have tried updating
session.gc_maxlifetime
and
session.cookie_lifetime = 0
in php.ini but it didnt worked out.