Sharing session between a rails server and a php server -


currently have 2 servers set up, each handling there own thing, want have unified login between them. right 1 portal's login form sending username/pass through api rails portal, , sends auth token, store in our session , use future authentication , api calls.

so problem becomes user visiting our site has login once in each portal, since ruby api doesn't communicate ours, , ruby side doesn't session when api pinged send , auth token.

my initial idea have rails side create session when send credentials api, apparently won't work won't able set session id in users browser, or @ least that's told.

if ruby side moved on using database session storage, alleviate issue? basically, want keep of changes on ruby side this.

i have implemented session sharing using memcache concept between ruby on rails , php. got success in this. if familier memcache concept useful you. , if need same can share you.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -