Gossamer Forum
Home : Products : Others : Fileman :

Logout URL

Quote Reply
Logout URL
Hi,

I am using the multi-user version.
Could someone tell me what I need to do to redirect my logout page to a custom URL?

I had tried following the instruction from Stone's posting in 7 June 02, but that didn't work for me...could be a different version since that posting was almost 3 years ago.

Thanks.
Quote Reply
Re: [chuanwee] Logout URL In reply to
just simply change the command at line #303 within Admin.pm to:

$self->{in}->redirect("http://www.domain.com");

TheStone.

B.
Quote Reply
Re: [TheStone] Logout URL In reply to
Hi Stone,

your instruction is rather ambiguous.
As you can see, replacing your code on line 303 would break the function.

Could you pls help to put your code inside this snippet.
Sorry if this should be the wrong snippet of code. Thanks.

303 $COMPILE{log_off} = <<'END_OF_SUB';
304 sub log_off {
305 #-----------------------------------------------------
306 # Log off
307 #
308 my ($self, $msg) = @_;
309
310 FileMan::Authenticate::auth_delete_session($self);
311 $self->save_log('cmd_logoff') if ( !$self->{auth}->{Title} ); # save log info
312
313 ($msg) or return $self->login_form($LANGUAGE{MSG_LOG_OFF});
314
315 $self->login_form($msg);
316 }
317 END_OF_SUB
Quote Reply
Re: [chuanwee] Logout URL In reply to
Change the code like:
....
FileMan::Authenticate::auth_delete_session($self);
$self->save_log('cmd_logoff') if ( !$self->{auth}->{Title} ); # save log info

unless ($msg) {
print $IN->redirect("http://www.domain.com");
}
$self->login_form($msg);

TheStone.


B.
Quote Reply
Re: [TheStone] Logout URL In reply to
Hi Stone,

Frown The redirecting still doesn't work.

Pasted your code in, and when I click on Logoff, nothing happens. No error showed up. Seems as if its waiting for a response which never came.

If it helps, my version of Admin.pm is
Revision : $Id: Admin.pm,v 1.39 2002/05/15 21:39:19 bao Exp

Pls let me know if you should need any other details from me.

Thanks.
Quote Reply
Re: [chuanwee] Logout URL In reply to
This is really old version of Fileman. You should upgrade fileman with the lastest release before makeing the change.

TheStone.

B.