From ac67692f985cec3c35751a66cc9777cfdad9652b Mon Sep 17 00:00:00 2001 From: jingquan huang Date: Sun, 2 Feb 2020 12:26:45 +0800 Subject: [PATCH] ad log --- app/controllers/main_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/main_controller.rb b/app/controllers/main_controller.rb index 3eb8059e4..8a83c2949 100644 --- a/app/controllers/main_controller.rb +++ b/app/controllers/main_controller.rb @@ -10,7 +10,8 @@ class MainController < ApplicationController def index domain_session = params[:_educoder_session] if domain_session - cookies[:_educoder_session] = domain_session + uid_logger("main start domain_session is #{domain_session}") + cookies[:_educoder_session] = domain_session if cookies[:_educoder_session] != domain_session uid_logger("main start is #{cookies[:_educoder_session]}") end