Subversion Repositories SmartDukaan

Rev

Rev 7169 | Rev 13173 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7169 Rev 7235
Line 108... Line 108...
108
    
108
    
109
    public String doLogout()
109
    public String doLogout()
110
    {
110
    {
111
        log.info("Logging out!");
111
        log.info("Logging out!");
112
        request.getSession().setAttribute("LOGGED_IN", null);
112
        request.getSession().setAttribute("LOGGED_IN", null);
-
 
113
        try {
-
 
114
            request.getSession().invalidate();
-
 
115
        } catch(IllegalStateException e) {
-
 
116
            log.error("Session is already invalidated", e);
-
 
117
        }
113
        return INDEX;
118
        return "logout";
114
    }
119
    }
115
 
120
 
116
    public String getPassword() {
121
    public String getPassword() {
117
        return password;
122
        return password;
118
    }
123
    }