If you've ever tried to use the LV Web Service > Session VIs for sessios, authentication, user management, etc., then you'll quickly notice that they're lacking an important feature: the ability to detect when a user session times out (expires).
I can think of two important use cases as of why you'd care:
(1) The user/client is viewing sensitive information (served to him by a LV web service), and then decided to walk away from his computer as we do sometimes. Any Joe walking by might then get a glimpse of something he shouldn't.
(2) For logging purposes. It might just be nice to know when the user logged in and when the user logged out for your IT records.
With a securely built web service, you could detect the user isn't there anymore, and direct the web client (Chrome, FF, IE, etc.) to redirect the page and destroy the session.
There's a sister idea that goes along with this, but I don't think I'll post in a separate thread unless needed. So, another way to detect session timeout events would be to get the session ID cookie (from Create Session VI), store each cookie in memory somewhere, and essentially poll them in a background loop for session information (ie session still exists?).
Ho hum, maybe I'm the only one building web applications of this type, but it sure would be a helpful feature in my opinion.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any idea that has received less than 2 kudos within 2 years after posting will be automatically declined.