简体   繁体   English

SuperWebSocket ClearIdleSessionInterval与IdleSessionTimeout

[英]SuperWebSocket ClearIdleSessionInterval vs IdleSessionTimeout

So Im not sure I understand the difference between these to confi-options in SuberWebSocket. 所以我不确定我是否了解SuberWebSocket中confi-options之间的区别。 Is the ClearIdleSessionInterval only an option of how often superwebsocket checks for timed out sessions or what? ClearIdleSessionInterval是否仅是superwebsocket多久检查一次超时会话的选项? If I set the ClearIdleSession = false would that let my session live forever (assuming theyre not forcefully closed) no mather what the ClearIdleSessionInterval or IdleSessionTimeout is set to? 如果我将ClearIdleSession = false设置为false,那将使我的会话永久存在(假设它们没有被强制关闭),是否更清楚将ClearIdleSessionInterval或IdleSessionTimeout设置为什么?

Grateful for any insight or help anyone can provide since googling and checking the docs doesnt give me anything. 谷歌搜索和检查文档并没有给我任何东西,感谢任何见识或任何人都可以提供的帮助。

Only docs on it on SuperWebSockets hompepage: 仅在SuperWebSockets hompepage上的文档:

clearIdleSession: true or false, whether clear idle sessions. Default value is false.

clearIdleSessionInterval: the clearing timeout idle session interval. Default value is 120, in seconds.

idleSessionTimeOut: The session timeout period. Default value is 300, in seconds.

We have to use clearidlesession with idlesessiontimeout . 我们必须将clearidlesessionidlesessiontimeout一起使用。 If we don't use both together it will clear the session even though it is not idle. 如果我们不一起使用它们,即使它不是空闲的,也会清除会话。 So make sure you use both together if you want to clear idle session. 因此,如果要清除空闲会话,请确保同时使用两者。

I was facing the same issue and clearing out the active sessions too. 我面临着同样的问题,并清理了活动的会议。

Example: 例:

IdleSessionTimeOut = 35,
ClearIdleSession = true,
ClearIdleSessionInterval = 35

Thanks, Veena 谢谢,Veena

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM