NYCPHP Meetup

NYPHP.org

[nycphp-talk] ajax and un-breaking the ol' back button

csnyder chsnyder at gmail.com
Wed Apr 2 12:28:51 EDT 2008


On Wed, Apr 2, 2008 at 9:53 AM, David Mintz <david at davidmintz.org> wrote:

> Before I start trying to un-break it please tell me if this logic is sound:
> when they do an ajax request, store the query params in the session.
> Whenever they GET the page itself, look first for these session vars and use
> them if they exist, else use the defaults.
>

That's probably the easiest way to do it, if you're already using sessions.

You could also use js to write the current params directly to cookie.


-- 
Chris Snyder
http://chxo.com/



More information about the talk mailing list