Project

General

Profile

Actions

Feature #982

open

option to set secure flag on session and autologin cookie

Feature #982: option to set secure flag on session and autologin cookie

Added by Dylan Wilder-Tack over 18 years ago. Updated over 15 years ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
Accounts / authentication
Target version:
-
Resolution:

Description

Is it possible to have a GUI setting to control the secure flag on the session and autologin cookies? I was able to set them by making the changes below:

app/controllers/account_controller.rb
cookies[:autologin] = { :value => token.value, :expires => 1.year.from_now, :secure => true }

config/environment.rb
ActionController::Base.session_options[:session_secure] = true

thanks!


Related issues 1 (0 open — 1 closed)

Related to Redmine - Feature #1763: Autologin-cookie should be configurableClosedActions

Updated by S Reid about 16 years ago Actions #1

Any plans to implement this ? I think it's needed to avoid HTTP Session hijacking ?

Updated by Toshi MARUYAMA over 15 years ago Actions #2

  • Category set to Accounts / authentication
Actions

Also available in: PDF Atom