Allow cookies from certain websites?
In Firefox you can do that.

I have not found a way in Safari, so one needs a external app (3d party).

Here is one you might like:

http://www.macupdate.com/app/mac/31018/safari-cookies