--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/95502d21-ec16-4e76-a657-23c22a00d79c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/969425f9-a570-4915-be2e-4e0efbec5a75%40googlegroups.com.
As far as I know, the browser won't let you close the window or tab from JavaScript except in very specific circumstances (you are allowed to close windows you opened from JavaScript).
--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/baa0e748-f950-4249-b02f-0d4ce02162be%40googlegroups.com.
It is standard to log out, what's not standard is for the window/tab to be closed. Almost every website works this way--after you log out, it sends you to a different page, it doesn't close the window/tab.No matter how the session ends, be it timeout, accidental disconnect, whatever, onSessionEnded will be called on the server side (unless the R process itself crashes, obviously then we don't get a chance to clean up). Keep in mind though, that when onSessionEnded is called, you can clean up anything on the server but it's too late to communicate with the client--onSessionEnded means the connection has already been broken.