dongyuchen0214 2014-03-18 04:15
浏览 40
已采纳

Dot Net Nuke移动重定向到完整站点

I have a DNN site that redirects to a mobile version of the site. I am trying to set a cookie or a session so that when directing off from the mobile version (to desktop version) it wont just loop back to the mobile website every time. What file should I be looking in to find where the redirect call is? (and to add a check or statement to see if came from mobile site already).

Thanks!

  • 写回答

1条回答 默认 最新

  • dongtuan5367 2014-03-21 00:05
    关注

    All you need to do is set a querystring parameter on the redirect to the desktop site of nomo=1. This will set 2 cookies, one of which is "disableredirectpresist" which expires after 20mins. If the user stays on the desktop site, this cookie is refreshed by 20mins to keep user on desktop site.

    So if you have a link on the desktop site that redirects back to mobile, you would want to delete this cookie from your code behind (can't delete from javascript as its a http cookie).

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记