Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

session store issue #32

Open
csph8 opened this issue Nov 28, 2013 · 0 comments
Open

session store issue #32

csph8 opened this issue Nov 28, 2013 · 0 comments

Comments

@csph8
Copy link

csph8 commented Nov 28, 2013

Hi

I am using old application which running ruby 1.8.7 and rails 2.3.14

In my application after login its revert to login panel, problem is not
storing session values during development mode.(Ruby 1.8.7 and Rails
2.3.14)

URL : http://localhost:3000/-- works fine(after login)
URL : http://test.prospectus.com:3000 - works fine(after login)
URL: http://prospectus.com:3000 NOT WORKING every time redirect to
login page, when I looked at log file session/create stores the
session values but next control session values lost, see the log file
for your reference.

Here is the host.ini file details

127.0.0.1 localhost
127.0.0.1 prospectus.com
127.0.0.1 www.prospectus.com
127.0.0.1 test.prospectus.com

Processing SessionController#create (for 127.0.0.1 at 2013-11-28
19:18:47) [POST]
Parameters: {"commit"=>"Log in", "login"=>"admin", "password"=>"1234"}
[4;36;1mUser Load (15.6ms) [0m [0;1mSELECT * FROM users WHERE
(users.login = 'admin') ORDER BY users.last_name LIMIT 1 [0m
session[:user_id] ------1
pp:---current_user----1
Redirected to http://prospectus.com:3000/clients
pp:--LAST session[:user_id]----1
Completed in 188ms (DB: 16) | 302 Found [http://prospectus.com/session]

Processing ClientsController#index (for 127.0.0.1 at 2013-11-28 19:18:48) [GET]
login_from_session session[:user_id] ------
Redirected to http://prospectus.com:3000/session/new
Filter chain halted as [:login_required] rendered_or_redirected.
Completed in 0ms (DB: 0) | 302 Found [http://prospectus.com/clients]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant