railsware / rack_session_access

Rack middleware that provides access to rack.session environment
MIT License
257 stars 29 forks source link

Full URL visit support #16

Closed hiroshi closed 7 years ago

hiroshi commented 9 years ago

I merged railsware/rack_session_access#15 to run tests.

ayanko commented 9 years ago

@hiroshi You provided "some solution". But where is description of the problem?

hiroshi commented 9 years ago

You provided "some solution". But where is description of the problem?

Sorry.

The problem is that #set_rack_session isn't aware of the domain of sessions. When I use full urls on a #vist, there was not way to share session with #set_rack_session.

My application recognizes subdomains of request urls, so I need to specify full urls for request specs.

I don't think my implementation is good one, but it works for me, at least. I hope you see the problem.

Please let me know if my description of the problem is not clear for you :)

ayanko commented 9 years ago
jerefrer commented 9 years ago

Thanks a bunch @hiroshi, you saved my day :) I couldn't manage to keep the session when visiting a subdomain, before I found your fix. Great day to you !