Re: iPhone talking to Django server (matching session)

2010-09-29 Thread Danny Bos
Thanks Skylar, One more semi-related question for anyone keen, if the iPhone is sending me a cookie with the session id in it, would I get it in a similar way? Eg: session_key = request.COOKIES['session_id'] session = Session.objects.get(session_key=session_key) uid =

Re: iPhone talking to Django server (matching session)

2010-09-28 Thread Skylar Saveland
User.objects.get(pk=Session.objects.get(pk=session_id).get_decoded() ['_auth_user_id']) via @SmileyChris On Sep 28, 9:36 pm, Danny Bos wrote: > Heya, > > I've got a Django application talking to an iPhone sending photos and > User data back and forth. I figured the best

iPhone talking to Django server (matching session)

2010-09-28 Thread Danny Bos
Heya, I've got a Django application talking to an iPhone sending photos and User data back and forth. I figured the best way to approach this (tell me otherwise) was to log the user in on the server and pass the iPhone back the 'session ID' in a JSON array. Then when the iPhone sends me back