I want to change the session timeout if the user is signed in, if not(user is only visiting), the session should over early. Everything was working until I update from php 5.6 to 7.2, I know this newer version doesn't supports anymore this approach but it's impossible to teste $_SESSION variable before calling session_start(), right? My question is how can I do something like ini_set('session.gc_maxlifetime',900);
after had called session_start() in php 7.2?
PS: I'm doing this because I'm seeing some bots access that are flooding the redis server with a sessions that takes long duration time, so I want clean it faster when it's a simple visit.