Java Code Examples for org.springframework.session.web.http.HeaderHttpSessionStrategy#setHeaderName()
The following examples show how to use
org.springframework.session.web.http.HeaderHttpSessionStrategy#setHeaderName() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: HttpSessionConfig.java From ZTuoExchange_framework with MIT License | 5 votes |
@Bean public HttpSessionStrategy httpSessionStrategy(){ HeaderHttpSessionStrategy headerSession = new HeaderHttpSessionStrategy(); CookieHttpSessionStrategy cookieSession = new CookieHttpSessionStrategy(); headerSession.setHeaderName("x-auth-token"); return new SmartHttpSessionStrategy(cookieSession,headerSession); }
Example 2
Source File: HttpSessionConfig.java From ZTuoExchange_framework with MIT License | 5 votes |
@Bean public HttpSessionStrategy httpSessionStrategy(){ HeaderHttpSessionStrategy headerSession = new HeaderHttpSessionStrategy(); CookieHttpSessionStrategy cookieSession = new CookieHttpSessionStrategy(); headerSession.setHeaderName("x-auth-token"); return new SmartHttpSessionStrategy(cookieSession,headerSession); }
Example 3
Source File: HttpSessionConfig.java From ZTuoExchange_framework with MIT License | 5 votes |
@Bean public HttpSessionStrategy httpSessionStrategy(){ HeaderHttpSessionStrategy headerSession = new HeaderHttpSessionStrategy(); CookieHttpSessionStrategy cookieSession = new CookieHttpSessionStrategy(); headerSession.setHeaderName("x-auth-token"); return new SmartHttpSessionStrategy(cookieSession,headerSession); }
Example 4
Source File: HttpSessionConfig.java From ZTuoExchange_framework with MIT License | 5 votes |
@Bean public HttpSessionStrategy httpSessionStrategy(){ HeaderHttpSessionStrategy headerSession = new HeaderHttpSessionStrategy(); CookieHttpSessionStrategy cookieSession = new CookieHttpSessionStrategy(); headerSession.setHeaderName("x-auth-token"); return new SmartHttpSessionStrategy(cookieSession,headerSession); }
Example 5
Source File: HttpSessionConfig.java From ZTuoExchange_framework with MIT License | 5 votes |
@Bean public HttpSessionStrategy httpSessionStrategy(){ HeaderHttpSessionStrategy headerSession = new HeaderHttpSessionStrategy(); CookieHttpSessionStrategy cookieSession = new CookieHttpSessionStrategy(); headerSession.setHeaderName("x-auth-token"); return new SmartHttpSessionStrategy(cookieSession,headerSession); }
Example 6
Source File: HttpSessionConfig.java From ZTuoExchange_framework with MIT License | 5 votes |
@Bean public HttpSessionStrategy httpSessionStrategy(){ HeaderHttpSessionStrategy headerSession = new HeaderHttpSessionStrategy(); CookieHttpSessionStrategy cookieSession = new CookieHttpSessionStrategy(); headerSession.setHeaderName("x-auth-token"); return new SmartHttpSessionStrategy(cookieSession,headerSession); }
Example 7
Source File: HttpSessionConfig.java From ZTuoExchange_framework with MIT License | 5 votes |
@Bean public HttpSessionStrategy httpSessionStrategy(){ HeaderHttpSessionStrategy headerSession = new HeaderHttpSessionStrategy(); CookieHttpSessionStrategy cookieSession = new CookieHttpSessionStrategy(); headerSession.setHeaderName("x-auth-token"); return new SmartHttpSessionStrategy(cookieSession,headerSession); }
Example 8
Source File: HttpSessionConfig.java From ZTuoExchange_framework with MIT License | 5 votes |
@Bean public HttpSessionStrategy httpSessionStrategy(){ HeaderHttpSessionStrategy headerSession = new HeaderHttpSessionStrategy(); CookieHttpSessionStrategy cookieSession = new CookieHttpSessionStrategy(); headerSession.setHeaderName("x-auth-token"); return new SmartHttpSessionStrategy(cookieSession,headerSession); }