Re: Best way to deal with Javascript (in)compatibility using PHP?



Avoid URL rewriting altogether. I think there are more problems
associated with this than you realize.

Set a $_SESSION variable. Check/set it at the beginning of every page.

session_start();
if (isset($_SESSION['browser']) == false) $_SESSION['browser'] =
yourDetectionFunction();

This will allow the rest of your adaptive code to still work, without
constantly having to explicitly pass around something that should be
the same on every single page during a session.

~D

.