Can someone please tell me if there a module that can set a cookie for us?

When our users register, they get assigned to a role (bridal couple OR wedding guests) and depending on this, the menu items change so the menu / navigation is as relevant for them, as possible.

95% of our trafic is anonymous and no roles are set because the anonymous users doesn't login.

I've been looking in http://drupal.org/project/modules?text=cookie to see if there's a module that can perform this task:

1. If cookie not set => ask user if they are bride/groom or wedding guest (like in a popup or redirecting to a form)
2. Cookie is set according to this

Comments

iantresman’s picture

This could be useful. Cookies could be set for a variety of reasons, that do not require a user to register, eg.

  • After the first visit to the website
  • On acknowledging a website's terms and conditions
  • On visiting a certain page

Subsequent usage could include:

  • Role based on cookie (eg. Anonymous user --> Acknowledged terms user)
  • Show block/node on cookie
  • Force redirect to node until cookie set
majortom’s picture

Another use would be returning a user to the last page he or she viewed (or the next page in a sequence like a web comic or tutorial).