I have a view on my Django website which has a Bootstrap button that performs an important operation, operation which requires the user to be logged in.
However, on our site the cookies have a lifetime of 15 minutes, meaning that a user which is logged in, goes for a cup of tea, and then comes back and clicks the button will think that the operation has gone through, when in fact he/she will be logged out.
Is there any way to check via JQuery or otherwise if the cookies have expired, and disable the button if this is the case?
Thanks,
Alberto