I am wanting to write a simple and straightforward client side JavaScript which will check if the users session is still active and then enable some action to take place, and if not for some other action to be coded for.
I have searched for a simple piece of JavaScript to achieve this, but not been successful to date.