Validation (Sesson) on every page

Validation (Sesson) on every page

  

Hi,

I would like to check if a certain Session variable is set. When it's not set, I want to redirect to the page where a form will be shown. The action on that page will be to set the Session variable.

I have already created a page to set the Session variable. This is set as the current 'Home' page. After logging in, this page is shown.

Now I would like to implement the validation for this Session variable. 

I don't want to implement the same flow on every page Preparation. Is their another way?

Thank you very much for your help.

Solution

Hi,

You can put that validation in a webblock that is always present on your pages, like the layout or the login info.

Solution

Thanks for your answer, I will implement it the way you suggest.