Procházet zdrojové kódy

session 过期时间控制

abiao před 3 roky
rodič
revize
6f676ef55b
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  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