Is it possible to force expire/delete a session?

#1

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

0 Likes

#2

Andrew,

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

···

Am 18.08.2015 um 06:51 schrieb Andrew Eddie:

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.

0 Likes

#3

Thank you.

Regards,
Andrew Eddie

···

On 18 August 2015 at 17:24, Tobias Oberstein <tobias.o...@gmail.com> wrote:

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.

--
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.

For more options, visit https://groups.google.com/d/optout.

0 Likes