Posted by mcfilms on July 14, 2011 at 11:48pm
2 followers
Jump to:
| Project: | Login Cookie (set/unset cookies on user login/logout) |
| Version: | 6.x-1.0 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
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
#1
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.