RPGspSessionId Function


Returns a unique session id.


Syntax

RPGspSessionId()

This function does not accept any parameters.


Remarks

In RPGsp, a session starts when a new user requests a browser page. The session ends when that same user closes the browser or has not requested or refreshed a page in the application for a long time. A session id is a 16-character string that uniquely identifies a session.


Example

Here is an HTML snippet that passes the session id to another RPG Smart Page:

<A href="addrec.pgm?SessionId=<% RPGspSessionId %>"> Add Record </A>

The receiving page can verify the validity of the session id as follows:

     C                   If        RPGspIn('SessionId') <> RPGspSessionId
     C                   ExSr      AccessDenied
     C                   EndIf


See Also

RPGspSave

RPGspIn


Profound Logic Software, Inc.
www.ProfoundLogic.com
(937) 439-7925