when user clicks the "Desktop site" from mobile version site,[ set cookie for them, something like
force_site_mode = desktop]
and
check for cookie before , [your redirect code is placed on desktop version site] to redirect users to the mobile version.
i.e.
if cookie is found && force_site_mode = desktop
dont redirect him to mobile version, even if its mobile i.e. dont exucute the modile redirect loop/code
else
check if its mobile and then execute redirect code.
its very easy........
now i would be thanks ful if you hit the thanks button.
|