Hello all,
Is there a way to redirect to another page at logout?
Thanks!
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Malaga Jack@malagajack
Malaga Jack - 0 likes
- David Moon@davidmoon
David Moon - 0 likes
- ghumanz@harinderghumanz
ghumanz - 0 likes
- DhrupDeScoop@Dhrup2000
DhrupDeScoop - 0 likes
- Chetan Sharma@openminds
Chetan Sharma - 0 likes
- ghumanz@harinderghumanz
ghumanz - 0 likes
- ghumanz@harinderghumanz
ghumanz - 0 likes
- Tom@Thomasondiba
Tom - 0 likes
You must log in to post replies.interesting I think I'd like to know this to
Very good question
I've looked around the code, but cannot find the reference.
Any updates on above post???????
this sounds familiar ;-) i think i coded this interface for some client many many months ago....
There is logout hook "trigger_elgg_event('logout','user',$_SESSION['user'])", I think one can register to this hook, an destroy the session by his/her own hook and then redirect to another page.
(original)
$result = logout();
if ($result) {
system_message(elgg_echo('logoutok'));
} else {
register_error(elgg_echo('logouterror'));
}
(modified)
$result = logout();
if ($result) {
forward (url);
} else {
register_error(elgg_echo('logouterror'));
}
any suggestions on this how can i redirect to particular url after logout by upper code.
(modified)
$result = logout();
if ($result) {
system_message(elgg_echo('logoutok'));
forward (url);
} else {
register_error(elgg_echo('logouterror'));
}
It works for me . I have created a new page and forword to that page after logout.
@David Moon, TwizaNex Logout Page 1.8 for Elgg 1.8 has been released. I hope this can help you to redirect your users to another page at logout. For more information, get the plugin here Hope it helps.
Thanks.