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 7043375
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:16:54+00:00 2026-05-28T02:16:54+00:00

I am writing a mobile detect script to use across multiple projects and I

  • 0

I am writing a mobile detect script to use across multiple projects and I wanted to gage the community to see if you all can help me figure out the best way todo something.

My mobile detect script works great and directs traffic as expected. The part I wanted to get my fellow programmers opinion on is the “override” feature. Allowing people to view the main site if they wish. My questions for you all, is how should I control the override? Should I use sessions to store the override variable or should I use cookies?

My first thought was sessions, but this script will be included across hundreds of locations and I am concerned about interference in the sessions with some of the projects. For instance, if one of the projects destroys the sessions for logging in and out a user, we will lose the “override” setting also.

What are your thoughts?

  • 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-05-28T02:16:54+00:00Added an answer on May 28, 2026 at 2:16 am

    Use a cookie:

    • you have nothing to store
    • you can scale
    • you can read the cookie before generating any content (by reading HTTP request headers)

    I should have recommand LocalStorage too, but it’s just for the fun, cookies are good enough.

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

Sidebar

Related Questions

Maybe you can help me... I am writing a program in Windows Mobile that
I'm writing mobile apps with the help of Appcelerator's Titanium Mobile. I need to
I'm writing web application for mobile phones and I need to use geolocation. I
I've been toying with writing a web app using jquery mobile which makes use
While making some final tests of a class-library that I'm writing for Windows Mobile
I am writing an application for Windows Mobile where I want to display some
I'm writing a CESetup.dll for a Windows Mobile app. It must be unmanaged, which
I'm currently writing an app for a Windows Mobile 5.0 app and it seems
I'm writing a mobile app and I need Android to store in a variable
I am writing a mobile App involving creating a Blogger client. I have the

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.