I second this approach,
Do not generate the page on run time based on user state then you will have issues due to caching
You can also also use selector based approach where CDN can serve different content based on cookie/header etc, but you have to think about browser cache.
Better to go with r...