I have a mobile redirect that works and points to a template mobile site. Now I need to bypass that and have the option to view the "Full Site" through a link on the mobile site. I've read the best way to do this is by setting a cookie, and found a site that gives example files to do this.


The example works fine on my site, but when i try to integrate this with my joomla index.php it fails and I get multiple errors.

Has anyone successfully done this with joomla or see how this code could be integrated? Or know of a better way to approaching this? Thanks for any help.