Ignore:
Timestamp:
06/11/07 15:12:21 (12 years ago)
Author:
pjkersha
Message:

fix to LogoutController?: ensure Pylons session security info is deleted if Session Manager logout fails otherwise panel will display logged in message even though a session no longer exists.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/controllers/logout.py

    r2959 r2991  
    5454        except Exception, e: 
    5555            log.error("logout - creating Session Manager client: %s" % e) 
    56             return self.__redirect()   
     56            return self.__cleanupAndRedirect()   
    5757         
    5858        # Disconnect from Session Manager 
     
    6363        except Exception, e: 
    6464            log.error("Error with Session Manager logout: %s" % e) 
    65             self.__redirect() 
    66              
     65            # don't exit here - instead proceed to delete session and  
     66            # redirect ... 
     67 
     68        return self.__cleanupAndRedirect() 
     69 
     70 
     71    def __cleanupAndRedirect(self): 
     72        """Remove security session and call _redirect""" 
    6773        try: 
    6874            # easy to kill our cookie 
Note: See TracChangeset for help on using the changeset viewer.