Session to check which section of site user has come from
-
I need to check which section of a site a user has come from and then display accordingly a menu from a selection of 3 types for a single page.
In php CMS I built myself I did this – used Session to define a stream within the site i.e., if you are in this section of the site, session variable = 1, if you go to that section of the site session variable now = 2. Depending on what the session variable equals, display menu 1 or menu 2 on a particular page.
Does WordPress allow for this? I’ve had a bit of a search but most of the info I’ve found so far talks about logins or using plugins that involve user logins. I don’t want it to have anything to do with user logins etc, just a simple ‘I am on this page’, session variable = 1 or 2.
- The topic ‘Session to check which section of site user has come from’ is closed to new replies.