Published on 09/21/2022
Published by Pratik Takle
How to use "vsession" in awesome enterprise
In Awesome enterprise, we have a ” vsession ” feature that allows us to access data through the website, which can be used for the following.
- Tracing the user activity.
- update the user with session data.
- easily access to data throughout the website.
There are 4 shortcodes that are in use for manipulating session
- vsession.create
- Create the Vsession
-
123[vsession.create set="template.vsession_id" /][template.vession_id /] will return the session id that uniquely created and you can refer that to get, set and manipulate the session data.
- vsession.exists
- vsession.set
- set values in vsession
-
123456[vsession.create {token} /][vsession.set key="session_id" value="{unique_number}" ttl=900 /]key = key for accessvalue = value for defined keyttl = total time for expiration in milisecs
- vsession.get
- It returns: If main is set then returns single key data otherwise all keys data will get a return.
-
12345[vsession.create {token} /][vsession.set key="session_id" value="{unique_number}" ttl=900 /][vsession.get session_id set=template.vsession_value /]key = key for access