Closing dangling sessions #1372
-
|
I am very new to this so forgive my ignorance. The issue I'm having is that if I kill my client the session stays active on the server, so with a maximum session count of 5 I'm running into where my server rejects a new connection. I'm trying to come up with a way to check for and close out those dangling sessions. I've figured out a way to check the CurrentSessionCount: session_node = client.get_node("i=2277") # i=2277 is the CurretSessionCount
session_count = session_node.get_value()
print("Session count is: ", session_count)Which is great, tells me how close I am to my limit. But that's about as much as I can do at this point. What I'd like to do is check for sessions and close any old/unused ones. Alternatively, is there a way to rejoin a session already established? I have tried "activate_session" but that seems like it's just opening up a new one again. Another consideration is getting old sessions to time out but I'm not sure that can be done. thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
|
the session is stored serverside the only way to get around is to shorten sessiontimeout in the s7 |
Beta Was this translation helpful? Give feedback.
-
|
reuse of session is not implemented! |
Beta Was this translation helpful? Give feedback.
the session is stored serverside the only way to get around is to shorten sessiontimeout in the s7