Commit 21d096040028732fcbd492fd68972020b88ee73a
1 parent
72d58c58
to stop a session is as simple as setting their livetime to 0. On the next reque…
…st this session will be removed.
Showing
1 changed file
with
2 additions
and
4 deletions
... | ... | @@ -26,17 +26,15 @@ |
26 | 26 | |
27 | 27 | #include "class.h" |
28 | 28 | #include "session.h" |
29 | -#include "hash.h" | |
30 | 29 | #include "application/application.h" |
31 | 30 | |
32 | 31 | #include "utils/memory.h" |
33 | 32 | |
34 | 33 | |
35 | 34 | void |
36 | -applicationSessionStop(Application this, const char * sid) | |
35 | +applicationSessionStop(Application this, Session session) | |
37 | 36 | { |
38 | - //Session session = hashDelete(this->active_sessions, sid, 36); | |
39 | - //delete(session); | |
37 | + session->livetime = 0; | |
40 | 38 | } |
41 | 39 | |
42 | 40 | // vim: set ts=4 sw=4: | ... | ... |
Please
register
or
login
to post a comment