LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Forced logout and page redirect via webserver?

Hello! I'm not overly familiar with labview or its webserver, so forgive me if this has a simple answer.  I have Labview 8.6.1 running a webserver to allow remote access to a few vi's.  Right now there is a schedule to use the VI's, where each person is assigned a time for control.  I have built a timer in labview that reads from a server side cookie the user's logoff time, and will reset the VI properties when it reaches then.

 

What I would like is to forcibly redirect to a timeout page a couple seconds before time is up, as the way the website's security is setup this would effectively log the user off and free up the page for the next guy.  Its an insurance policy; there is plenty of visual feedback onscreen warning that time is expiring, but since its being used in a university setting I'm concerned a student will actively try and maintain control (the login info is NOT being handled by labview, that all works via Apache for the moment).  Is this possible in some way with labview, or will I have to chop together some JavaScript?  I've been trying to read the documentation on .eps, webserver, etc.,, but right now I'm confused as to whether the labview plugin sets up a java-like environment on the client that would make things like this possible or not.... 

 

Any help is appreciated, thanks.

0 Kudos
Message 1 of 2
(2,399 Views)

Hey, 
LabVIEW doesn't has any kind of built in functionality to control this.  You'll have to use either some HTML code or a javascript to check the time and force a redirection.  

Maybe this will help:

http://billstclair.com/html-redirect2.html

 

Thanks, 

Dave T. 

National Instruments
FlexRIO & R-Series Product Support Engineer
0 Kudos
Message 2 of 2
(2,362 Views)