Skip to content

Commit

Permalink
fix annoying session-expired issue
Browse files Browse the repository at this point in the history
  • Loading branch information
cbellone committed Nov 11, 2014
1 parent 49e4274 commit 7dd6075
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/io/bagarino/config/WebSecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ public CsrfTokenRepository getCsrfTokenRepository() {

@Override
protected void configure(HttpSecurity http) throws Exception {
http.sessionManagement()
//.invalidSessionUrl("/session-expired")
http.exceptionHandling()
.accessDeniedPage("/session-expired")
.and()
.csrf()
.csrfTokenRepository(getCsrfTokenRepository())
Expand Down

0 comments on commit 7dd6075

Please sign in to comment.