I have an Asp.net webservice. It has method M1. M1 creates a folder for each session. When a session is expired, I delete that folder in global.asax using the following code
If you are creating and deleting folder under your web service path, iis immediatly restarts. Take a look on this post.