session list

Hi everybody. I have question about additional processing while "new" and "delete" session. How can I add my method to base "Session.new" and "Session.delete" methods ? And one more question - how and where can I define common variable for all session ?

Thanks, Andrey