Added debug info for cookie/session problem.
This commit is contained in:
parent
bcc77f7081
commit
8f2f920c0f
1 changed files with 5 additions and 1 deletions
|
@ -31,7 +31,8 @@ class SessionsController < ApplicationController
|
||||||
# set session user_id
|
# set session user_id
|
||||||
user = User.find_fulldata(user.id)
|
user = User.find_fulldata(user.id)
|
||||||
session[:user_id] = user['id']
|
session[:user_id] = user['id']
|
||||||
|
puts "..."
|
||||||
|
puts session.inspect
|
||||||
# check logon session
|
# check logon session
|
||||||
logon_session_key = nil
|
logon_session_key = nil
|
||||||
if params['logon_session']
|
if params['logon_session']
|
||||||
|
@ -44,6 +45,9 @@ class SessionsController < ApplicationController
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
puts ".222.."
|
||||||
|
puts session.inspect
|
||||||
|
|
||||||
# return new session data
|
# return new session data
|
||||||
render :json => {
|
render :json => {
|
||||||
:session => user,
|
:session => user,
|
||||||
|
|
Loading…
Reference in a new issue