I have same problem
I need expire session in 2 minutes!
In my theme functions.php
add_filter( ‘wp_session_expiration’, function() { return 60 * 2; } ); // Set expiration to 2 minutes
My “session” variables never expires, until I destroy it in may logout function.
What’s wrong?