My company wishes to split their website so that anonymous users are given slightly different sites based on a question when they first visit.

I intend to use a cookie to store the answer to the question between sessions, but I'm wondering what the best way is to use that answer once the user is browsing the site? I intend to use page manager to handle the context but I'm still trying to determine where it should be stored:

  • Cookies can be turned off by the user, or the IT department, much of our target audience have policies restricting or outright banning cookies
  • Session variables seem to be the way to go, unless:
  • Does the Global $user variable store different information for each anonymous visitor?

Are there downfalls in either of the latter two options? Have I missed any options?

  • For those coming across this later: I decided to use subdomains to determine how content shows.
    – Darvanen
    Oct 29, 2014 at 4:19

1 Answer 1


Session variables seem to be the way to go

Don't forget that session variables rely on cookies

Have I missed any options?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.