skip to main content

Library Routines : WD2$SESSION

WD2$SESSION
The WD2$SESSION library routine manages session fields allowing to share information between JSP and Web Direct 2.0. It can be used only in Web Direct 2.0 environment.
Syntax:
 CALL "WD2$SESSION" USING opCode 
Parameters:
WD2-GET-SESSION-VALUE  retrieves a session value
WD2-PUT-SESSION-VALUE  sets a session value
Return code:
returnCode definition and meaning depend on the opcode.
Examples:
Example - Get the screen width (this works on WD2 only)
move "wd2.on_client_info.screen.width" to g-field
call "wd2$session" using wd2-get-session-value
Example - Set the session username (this works on WD2 only)
move "wd2.username" to s-field
move ws-user-name   to s-value
call "wd2$session" using wd2-put-session-value

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left