Is it possible to force expire/delete a session?

49 views
Skip to first unread message

Andrew Eddie

unread,
Aug 18, 2015, 12:51:21 AM8/18/15
to Crossbar
Is it possible to forcibly delete or expire a user session on the router to, for example, to force log them out of an application?

Thanks in advance.

Regards,
Andrew Eddie

Tobias Oberstein

unread,
Aug 18, 2015, 3:24:05 AM8/18/15
to cross...@googlegroups.com
Andrew,

Am 18.08.2015 um 06:51 schrieb Andrew Eddie:
> Is it possible to forcibly delete or expire a user session on the router
> to, for example, to force log them out of an application?

Yes, you can forcefully kick a session using the meta procedure

"wamp.session.kill"

This takes positional args:

- the session ID to kick (mandatory)
- reason URI provided to client session (optional)
- message (str) provided to client session (optional)

Meta procs and events for sessions are described here

http://crossbar.io/docs/Session-Metaevents-and-Procedures/

unfort. the docs for above proc are missing

https://github.com/crossbario/crossbardocs/issues/4

>
> Thanks in advance.
>
> Regards,
> Andrew Eddie
>
> --
> You received this message because you are subscribed to the Google
> Groups "Crossbar" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to crossbario+...@googlegroups.com
> <mailto:crossbario+...@googlegroups.com>.
> To post to this group, send email to cross...@googlegroups.com
> <mailto:cross...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/crossbario/c58ef94b-37ff-4e19-84ec-3bccbe5041af%40googlegroups.com
> <https://groups.google.com/d/msgid/crossbario/c58ef94b-37ff-4e19-84ec-3bccbe5041af%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

Andrew Eddie

unread,
Aug 19, 2015, 6:07:27 PM8/19/15
to cross...@googlegroups.com
Thank you.

Regards,
Andrew Eddie
> You received this message because you are subscribed to a topic in the
> Google Groups "Crossbar" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/crossbario/OgweKHge7Rs/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> crossbario+...@googlegroups.com.
> To post to this group, send email to cross...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/crossbario/55D2DD93.5050209%40gmail.com.
Reply all
Reply to author
Forward
0 new messages