When is the global.asa file used?

If I Put a response.write and then a response.end in the Session_Onend procedure it never gets executed!
But it does work in the session_onstart??????