Attempt to delete the auth session when we log out of the TPAC.
Signed-off-by: Jeff Godin <jgodin@tadl.org>
my $self = shift;
my $redirect_to = shift || $self->cgi->param('redirect_to');
+ # Blindly attempt to delete this session, regardless of if it exists
+ if ($self->cgi->cookie(COOKIE_SES)) {
+ try{
+ my $response = $U->simplereq(
+ 'open-ils.auth',
+ 'open-ils.auth.session.delete',
+ $self->cgi->cookie(COOKIE_SES));
+ } catch Error with {};
+ }
+
# If the user was adding anyting to an anonymous cache
# while logged in, go ahead and clear it out.
$self->clear_anon_cache;