made cookie parameters configurable
Merge remote-tracking branch 'origin/master'