Workers Redirection Setting Cookie Only on 1st visit then Respect Session Language


I have read and implemented the Country Redirection on Workers successfully, but there is one more thing for me to resolve. The redirection works 100% and all the time, not just on the first visit. This is as expected. Ideally, however, I would like the redirection to only work on 1st visit, then respect the language session. This issue has also been reported in here. The solution seems to be the use of appropriate cookies. More specifically, Sandro replied to this comment by mentioning: “You could use cookies, which you set in the response object and then check for in the request object.”

I would appreciate it if anyone can pinpoint exactly how to set this cookie in order to achieve my goal ando overcome this issue.

Thanks a lot.