Custom script on session start

How can I run a custom script on session start ie when a user logs in?
In back end, we can use hooks.py to achieve this, but what about the front end. Please guide.

Add it in the hooks.py where it says
Add js to desk header

Oh, that’s easy! Thank you!:slight_smile:

You are very welcome :slight_smile: