Hi ,
I don't think there is any way available explicitly to check for this.
You have to manually check for the session or you can use username accounts with different privileges to prevent the users from making any changes.
Thanks and Regards,
Vibhor Amrodia