Is it possible to force expire/delete a session?

49 visualizzazioni
Passa al primo messaggio da leggere

Andrew Eddie

da leggere,
18 ago 2015, 00:51:2118/08/15
a 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

da leggere,
18 ago 2015, 03:24:0518/08/15
a 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

da leggere,
19 ago 2015, 18:07:2719/08/15
a 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.
Rispondi a tutti
Rispondi all'autore
Inoltra
0 nuovi messaggi