Quellcode durchsuchen

session 过期时间控制

abiao vor 3 Jahren
Ursprung
Commit
6f676ef55b
1 geänderte Dateien mit 3 neuen und 0 gelöschten Zeilen
  1. 3 0
      config/initializers/session_store.rb

+ 3 - 0
config/initializers/session_store.rb

@@ -6,3 +6,6 @@ AdminFohowCom::Application.config.session_store :cookie_store, key: 'admin_fohow
 # which shouldn't be used to store highly confidential information
 # (create the session table with "rails generate session_migration")
 # AdminFohowCom::Application.config.session_store :active_record_store
+
+
+#AdminFohowCom::Application.config.session_store :cookie_store, key: 'admin_fohow_com_sid', :expire_after => 30.minutes