}
@Override
public SessionManager newSessionManager()
{
MemcachedSessionManager manager;
try
{
manager = new MemcachedSessionManager();
}
catch (Exception e)
{
throw new RuntimeException(e);
}
manager.setSavePeriod(1);
manager.setStalePeriod(0);
manager.setSaveAllAttributes(_saveAllAttributes);
manager.setSessionFactory(new XStreamSessionFactory());
//manager.setScavengePeriod((int)TimeUnit.SECONDS.toMillis(_scavengePeriod));
return manager;
}