Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Sessions VIs

LabVIEW 2013 Help

Edition Date: June 2013

Part Number: 371361K-01

»View Product Info

Owning Palette: Web Services VIs

Requires: Full Development System. This topic might not match its corresponding palette in LabVIEW depending on your operating system, licensed product(s), and target.

Use the Sessions VIs to manage HTTP sessions and session variables. You can create and destroy HTTP sessions, read and write session variables, and return session information.

Palette ObjectDescription
Check If Session ExistsChecks if an HTTP session is associated with the current HTTP request.
Create SessionCreates an HTTP session for the current HTTP request.
Delete Session VariableDeletes the HTTP session variable associated with the name key. You can create session variables by first establishing an HTTP session with the Create Session VI and then using the Write Session Variable VI to create the variables.
Destroy SessionDestroys the HTTP session associated with the current HTTP request. Use the Create Session VI to establish an HTTP session. The status of error in does not affect the functionality of this VI.
Get Session ID CookieReturns a client-side cookie for the HTTP session. Client-side cookies allow the server to reuse the same HTTP session when the same Web client submits multiple HTTP requests. You must first establish an HTTP session using the Create Session VI. The cookie remains valid while the browser on the Web client is open.
Read All Session VariablesReads all HTTP session variables associated with the current HTTP request. You can create session variables by first establishing an HTTP session with the Create Session VI and then using the Write Session Variable VI to create the variables.
Read Session VariableReads the value of an HTTP session variable associated with the current HTTP request. You can create session variables by first establishing an HTTP session with the Create Session VI and then using the Write Session Variable VI to create the variables.
Write Session VariableCreates or replaces a session variable or set of session variables associated with the current HTTP request. The data type you wire to the value input determines the polymorphic instance to use.

 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit