Serve content based on Session Variable HELP
I am building a website for a client who sells heating components.
I am looking to serve slightly different content on the pages of my site depending on if people are one of 3 groups - consumer, landlord or installer.
On my home page - there are 3 tabs, each with its own 'more' button. (3 tabs / 3 more buttons).
What I would like to do is set a session variable (ContentType) to enable me to show the correct content for each group.
Then on each page I'm going to set up variables that use 'IF ContentType = x'
I would also like the session to be reset every time someone visits the home page.
Im thinking that I need to wrap each home page tab inside a form, but maybe theres a better way?