Skip to content

Commit 326ca03

Browse files
committed
Reactivate Session-Cookie
1 parent 47db127 commit 326ca03

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

evaluationserver/app/controllers/administration_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
class AdministrationController < ApplicationController
22

33
def admin_mode_on
4-
request.session_options[:skip] = false
4+
#request.session_options[:skip] = false
55
session[:admin] = true
66
redirect_back(fallback_location: root_path)
77
end
88

99
def admin_mode_off
10-
request.session_options[:skip] = false
10+
#request.session_options[:skip] = false
1111
session.delete(:admin)
1212
redirect_back(fallback_location: root_path)
1313
end

evaluationserver/app/controllers/application_controller.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ def http_basic_authenticate
4444

4545

4646
def set_cache_headers
47-
response.headers["Cache-Control"] = "no-cache, no-store"
48-
response.headers["Pragma"] = "no-cache"
49-
response.headers["Expires"] = "Fri, 01 Jan 1990 00:00:00 GMT"
50-
request.session_options[:skip] = true
47+
#response.headers["Cache-Control"] = "no-cache, no-store"
48+
#response.headers["Pragma"] = "no-cache"
49+
#response.headers["Expires"] = "Fri, 01 Jan 1990 00:00:00 GMT"
50+
#request.session_options[:skip] = true unless session[:admin]
5151
end
5252

5353
end

0 commit comments

Comments
 (0)