By Ravi.J on
Greetings!,
I am writing a new module for drupal that requires me to setup additional cookies.
The problem i have on hand is that, if a use clicks on logout, i need to destroy the cookies that were setup.
Is there a function that can be used to perform certain tasks when user clicks on logout ?
Please help
-Jula
Comments
hook_user will do the trick
You need to implement hook_user for your module.
Sample code:
hope this helps.
Thank you
Thanks for the quick reply, appreciate your help
Cheers!!