App Connect State Management Support Product Page

Answered

How to set Session Variable from URL

Asked 12 Jun 2017 00:21:06
1
has this question
12 Jun 2017 00:21:06 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 12 Jun 2017 14:30:53
12 Jun 2017 14:30:53 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

Replied 12 Jun 2017 15:09:45
12 Jun 2017 15:09:45 Firdaus Rohman replied:
Cool. Will try it out.

Thank you.
This reply was removed on 6/21/2017 4:49:25 AM.
See the changelog

Reply to this topic