Limit session life time

hi
installed nc 16.
i want to limit session life time for 300 sec and disable cookies.
i tried set values in config.php but its not working.
‘remember_login_cookie_lifetime’ => 300,
‘session_lifetime’ => 300,

any ideas…?
Yossi