Re: Sessions living through HttpResponseRedirect

2012-04-24 Thread Alexandr Aibulatov
Set request.session.modified = True 2012/4/24 sspross : > Hi Joshua > > What was your solution here? It looks like I'm having the same kind of > problem like you: > > http://stackoverflow.com/questions/10293467/losing-session-after-httpresponseredirect > > Thx! > > Regards, > Silvan > > On Wednesd

Re: Sessions living through HttpResponseRedirect

2012-04-24 Thread sspross
Hi Joshua What was your solution here? It looks like I'm having the same kind of problem like you: http://stackoverflow.com/questions/10293467/losing-session-after-httpresponseredirect Thx! Regards, Silvan On Wednesday, April 1, 2009 4:47:17 AM UTC+2, Joshua K wrote: > > Howdy Folks, > > How

Re: Sessions living through HttpResponseRedirect

2009-04-01 Thread Joshua K
Daniel, thanks for the note - I found out that it does work as I expected. Bro, thanks for the hint - but in this case a 'client' is not the same person who is logged in. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

Re: Sessions living through HttpResponseRedirect

2009-04-01 Thread Bro
Hi Josh, I think the best is after you create a client, he should log in. When the client log in, you can use : request.user to get user information. Good luck Bro --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Sessions living through HttpResponseRedirect

2009-03-31 Thread Daniel Roseman
On Apr 1, 3:47 am, Joshua K wrote: > Howdy Folks, > > How do I get a session to live through a HttpResponseRedirect?  For > example: > >         form = clientFormCreate(request.POST) >         if form.is_valid(): >             newClient = form.save() >             request.sesson['current_client']

Sessions living through HttpResponseRedirect

2009-03-31 Thread Joshua K
Howdy Folks, How do I get a session to live through a HttpResponseRedirect? For example: form = clientFormCreate(request.POST) if form.is_valid(): newClient = form.save() request.sesson['current_client'] = str(newClient.pk) return HttpResponse