On 8/17/06, Seth Buntin <[EMAIL PROTECTED]> wrote:
> So how would I send my context with that redirect?  Or am I thinking
> about it the wrong way.  The problem is I have a search field and in
> the results there are links.  If someone clicks a link it displays the
> page but when they click back it give the "Page expired" message.

<http_pedantry>
Searching should be an idempotent operation, which means it should be
carried out via GET, not POST
</http_pedantry>

And the practical solution in this case is the same as the pedantic
one -- even if you absolutely have to use POST for the initial
submission, return an HttpResponseRedirect to a URL which gets the
information it needs from GET parameters. Of course, at that point one
is left to wonder why there's an intermediate POST step at all...


-- 
"May the forces of evil become confused on the way to your house."
  -- George Carlin

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to