Try ERPNext Buy Support Partners Foundation

Execute custom script on user login/logout

I have a client side script and I want to execute it when a user logs in and out. How do I achieve that?