Added debug info for cookie/session problem.

This commit is contained in:
Martin Edenhofer 2013-06-23 11:14:36 +02:00
parent bcc77f7081
commit 8f2f920c0f

View file

@ -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,