top of page

Moji5 Knowledgebase

Session

Session is a state that is used to store and retrieve values of a user. It helps to identify requests from the same browser during a time period (session). It is used to store value for the particular time session.


How to Create Session


In this tutorial, you need to create two forms which are 'Session' and 'Session 2'. Session from will pass data to Session 2 form.


Form 1: Session


Create a field in Session form. Name as 'Session'.


Create a new behavior. Put the appropriate caption. Click Action wizard.


Click Define by code. Write a below code to store session information. Click Check Syntax, if no error then click Save and close.


Click Create now.

Form 2: Session 2


Create a new form. Name as 'Session 2'. Just leave it as default. Click Edit form behavior.


Create a new behavior. Put the appropriate caption. Click Define by code.


Write a below code to retrieve and display session information. Click Check Syntax, if no error then click Save and close.


Click Create now.


How it look in the form:


In your Session form, type 'Hello World' in Session field and click Save.


Go to your Session 2 form. System will display session information that you typed just now in Session form.


bottom of page