Created by: jekakm
In https mode cookie should have secure flag. Or need add separate option for this.