Hi
We're using PWG as a module in our website. A requirement we have is to define which page the user gets redirected to when they click logout. (btw, I tried capturing the logout event in a plugin and was unable to get it work).
Please could you make the following change:
In file include/user_inc.php
line: 33
if ($conf['redirect_on_logout'])
redirect($conf['redirect_on_logout']);
else
redirect(get_gallery_home_url());
I can then define the conf variable to the page I wish to redirect the user to in the local config.
Thanks
Chris
Offline
hi
what did you try with the trigger?
Offline
Previously, for some reason it wasn't calling my event handler.
I had: add_event_handler('user_logout', 'my_logout');
Strangely, I've just retried and it's working fine now (go figure?).
Offline
UPDATE: Unfortunately, this only appeared to work.
It triggers the handler fine and redirects to the new page, however, the PHP session is not terminated.
Last edited by chrisa (2013-08-24 22:07:30)
Offline