use session_write_close() because the Session class has no close() yet in this version