Hi,

Would it be possible to set a cookie based on the user's role? So if he is registered as a "megauser" he may get one cookie, but if he is a "standarduser" he will get another -- or maybe none at all?

Thank you.

Comments

breathingrock’s picture

I created a patch for this here -- http://drupal.org/node/1411864#comment-5495186

It also includes functionality for creating cookies with the same name, but different paths. A bit more than you're looking for, but seems to work well.

Let me know if you find any issues.