App Connect State Management Support Product Page
Answered
How to set Session Variable from URL
Asked 7 years ago
1
has this question
7 years ago Firdaus Rohman posted:
I have a page with contents are loaded based on Session. How to set the Session Variable from URL?For example site.com/?highlight= loads the page with Session highlight is set. The Server Action responsible for setting up the session also contains step to destroy other session, this to make sure only intended session is loaded.
Replies
Replied 7 years ago
7 years ago Teodor Kuduschiev replied:
Hello Firdaus,
You can do this:
1. In server connect
- setup a get var
- setup your session
- add set session step, use the get var as a value for your session
2. In app connect
- create a query string (highlight)
- add server connect component, and select the action file with set session step
- under input parameters, bind the get var with the query string value
You can do this:
1. In server connect
- setup a get var
- setup your session
- add set session step, use the get var as a value for your session
2. In app connect
- create a query string (highlight)
- add server connect component, and select the action file with set session step
- under input parameters, bind the get var with the query string value
Replied 7 years ago
7 years ago Firdaus Rohman replied:
Cool. Will try it out.
Thank you.
Thank you.