title: How to initiate global variable after log out?
body: <p>My project actual using spring + gradle system, 
  in some controller file, I added some global variable like this:</p>
  
  <pre><code>@Controller
  @RequestMapping(value = "/admin/question")
  public class QuestionAdminController {
  
  List&lt;Question&gt; questions;
  String message;
  Company company;
  </code></pre>
  
  <p>this is my WebSecurityConfigurerAdapter class:</p>
  
  <pre><code> @Override
  protected void configure(HttpSecurity http) throws Exception {
      http.csrf().disable(); // temporary disabled for testing file upload
      http.headers().frameOptions().disable(); // disabled for h2 console
      // Roles permissions        
      http.authorizeRequests()
              // Directories access permissions
              .antMatchers("/user/**").access("hasRole('USER')")
              .antMatchers("/company/**").access("hasRole('COMPANY')")
              .antMatchers("/admin/**").access("hasRole('ADMIN')")
              .antMatchers("/db/**").access("hasRole('DBA')")
              // All user can access to new routes at the root
              .antMatchers("/**").permitAll()
              // Other requests need the login
              .anyRequest().authenticated()
              // Configure the login page
              .and().formLogin().loginPage("/login").successHandler(customSuccessHandler).permitAll()
              // Default logout from Spring Security
              .and().logout().permitAll()
              .and()
              .sessionManagement()
              .maximumSessions(1).expiredUrl("/login?expired");
  }
  </code></pre>
  
  <p>Now when I logging with another user, these global variables keep still the same value.</p>
  
  <p>So I want to know: <strong>How can I initiate these global variable after log out?</strong></p>