Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upExpire sessions #3
Comments
Hi, I would very much like to take this issue. Where would be a good place to start? |
The sessions are stored over here: https://github.com/SwiftWebUI/SwiftWebUI/blob/develop/Sources/SwiftWebUI/ViewHosting/NIOEndpoint.swift#L62 They would need to track information when they got last accessed, and then there would need to be an NIO event loop timer removing "too old" sessions from the map. |
Thanks! I will give it a go today. |
Sessions currently live forever :-) This "just" needs a proper timer.