Hi,
I think what you are looking for, is in /lib/Community/Web/User.pm.
Code:
sub user_logout {
# -------------------------------------------------------------------
require Community::User;
my $session = $IN->cookie($CFG->{session_cookie_name_session});
my $cookies;
if ($session) {
my $user = comm_auth_session($session);
comm_delete_session($session);
$cookies = session_cookies('', '-1y');
if ($user) {
push @$cookies, Community::User::cuser_logout($user);
}
}
return ('user_logout.html', { session_cookie_name_user => '' }, {}, $cookies);
}
It may be as simple as changing it to:
Code:
sub user_logout {
# -------------------------------------------------------------------
require Community::User;
my $session = $IN->cookie($CFG->{session_cookie_name_session});
my $cookies;
if ($session) {
my $user = comm_auth_session($session);
comm_delete_session($session);
$cookies = session_cookies('', '-1y');
if ($user) {
push @$cookies, Community::User::cuser_logout($user);
}
}
print "Location: http://www.url.com/to_go_to.bla \n\n";
}
However, looking at it - you may have a problem, as it looks like the cookies are set (or more to the point "cleared out", so that they are fully logged out).
The better option may well be to just edit:
user_logout.html
...and put in an auto-redirect (using javascript) on that page, which goes to the page you want.
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my
Amazon Wish List GLinks ULTRA Package | GLinks ULTRA Package PRO Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin |
Pre-Made Template Sets |
FREE GLinks Plugins!