Added option for secure session cookie