Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8726913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:20:32+00:00 2026-06-13T08:20:32+00:00

This isn’t really a technical question, but I essentially have two sites, a mobile

  • 0

This isn’t really a technical question, but I essentially have two sites, a mobile and a regular one. I am currently able to detect the device the user is on and redirect them to the mobile site, which is a sub-directory of my regular site. The thing is I need an option for the user to be able to view the regular site if they want to. My problem is that if I provide them a link to the regular site, they will automatically be redirected back to the mobile site. The differences between the two sites is much more then just a style sheet which can be swapped out at will. The solution I though of was to create a cookie variable (session if they are disabled) with a value after they choose if they want the mobile or regular site (1/0 I guess). Based on that variable enable or disable the code that does the redirect. Is this the correct way to do this? Or is there a more elegant way to do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T08:20:33+00:00Added an answer on June 13, 2026 at 8:20 am

    I successfully implemented this method and works smoothly enough for my tastes. In the if on the regular site, just be sure to check for both the GET variable which would have the value of either 1 or 0 AND the cookie or session variable you set. This way after they take the initial link from the mobile site and you set the session or cookie variable, you don’t have to carry the GET variable over with every subsequent link.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This isn't really a technical question so I apolgoise if I ruffle any feathers!
This isn't the best question ever, but since search engines feel the need to
This isn't strictly a programming question, but I'm asking it here because it's certainly
This isn't a code question for once, but it definitely has me confused. Basically,
This isn't the best programming question but lets face it, the server fault guys
This isn't a very simple question, but hopefully someone has run across it. I
This isn't really clearly documented, but a shallow search reveals that RIM's RAPC compiler
this isn't really an issue, but more of a concern that I would appreciate
This isn't a repeat of a previous question, I have found out the issue
This isn't about a specific problem I'm having, but I have to clear something

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.