On Sun, 3 Apr 2005, Cees Hek <[EMAIL PROTECTED]> wrote:
On Apr 3, 2005 3:45 PM, RA Jones <[EMAIL PROTECTED]> wrote:
sub logout { # called via link from web-page:
my $self = shift;
$self->session->delete(); # delete session
$self->tt_params( username => undef ); # delete UserID param;
# tt_params_clear doesn't work!!
login(); # causes fatal error with query() undefined
Here is the problem. You need to call login as a method call here:
$self->login();
Absolutely right, thanks - it seems so simple when you know how :-)
Incidentally, as commented above, $self->tt_params_clear generates a
server error, as this function doesn't appear to be recognised:
That should be $self->tt_clear_params. It looks to be a documentation
problem. I have fixed and it should be included in the next release
of the plugin. thanks!
That's also working now. Thanks for your help once again Cees.
--
Richard Jones
Leeds, UK
mailto:[EMAIL PROTECTED]
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/[email protected]/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]