Use application config cookie expiration parameter
Check empty string with len()