Ruby on Rails Monday, February 25, 2013

Oh, I'm working with rails 2.3.5 btw...

El lunes, 25 de febrero de 2013 22:04:47 UTC-6, CiriusMex escribió:

Hello, I'm creating a serie of "WebServices" from a rails application so that an iOS App will be able to communication with the WebApp. Basically I'm creating functions that get a json request, analyse it and send a json result...I've never done that before and I have a huge problem: I have no idea how to manage session for WebServices. The idea is that a user log from the iOS App to the WebApp using a webservice. I was able to create a function that does the login but how do I do to remember the user next time the App calls a webservice? In my WebApp it's pretty easy, I check the session for user information but in that case I have no clue about what to do...I thought of saving the session in a DB table but doesn't seems like the best solution, is there any way a session can be loaded from a token or something?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/HveuLb2LbvMJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment