Revision 9228
Added by ben leinfelder over 9 years ago
src/perl/Metacat/Metacat.pm | ||
---|---|---|
175 | 175 |
} |
176 | 176 |
|
177 | 177 |
############################################################# |
178 |
# subroutine to logout of Metacat |
|
179 |
############################################################# |
|
180 |
sub logout { |
|
181 |
my $self = shift; |
|
182 |
|
|
183 |
my %postData = (action => 'logout'); |
|
184 |
|
|
185 |
my $response = $self->sendData(%postData); |
|
186 |
|
|
187 |
# clear the cookie |
|
188 |
my $cookie_jar = $self->{'cookies'}; |
|
189 |
$$cookie_jar->clear(); |
|
190 |
|
|
191 |
return $response->content; |
|
192 |
} |
|
193 |
|
|
194 |
############################################################# |
|
178 | 195 |
# subroutine to log into Metacat and get usr info xml for |
179 | 196 |
# a logged in user |
180 | 197 |
############################################################# |
Also available in: Unified diff
add logout implementation - calls server and clears cookie jar.