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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T16:56:34+00:00 2026-06-04T16:56:34+00:00

I am making a mobile web application in backbone under: http://example.com/mobile/index/ After the user

  • 0

I am making a mobile web application in backbone under:
http://example.com/mobile/index/

After the user logs in I’m storing a token in localStorage and redirecting to a search route within backbone:
http://example.com/mobile/index/search

I was under the impression the localStorage information can be shared across the entire domain but the localStorage token is only accessible from the latter URL. Why is this not the case? How can I share localStorage for the entire example.com domain?

A side-point if anyone know – will information for m.example.com, example.com and http://www.example.com be shared with a similar approach?

Many thanks in advance

  • 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-04T16:56:36+00:00Added an answer on June 4, 2026 at 4:56 pm

    That should not happen.

    1. Are you absolutely sure they have the same origin? They must have the same:

      • Subdomains: http://example.com and http://www.example.com are different origins

      • Protocols: http://www.example.com and https://www.example.com are different origins

    2. Alternatively, it’s possible that localStoarge might be full, so new data is getting silently ignored.

    3. If you are doing development locally, make sure you do not intermix localhost and 127.0.0.1 (those a different origins that happen to refer to the same physical machine).

    4. If you are doing development locally and loading your page as a file: resource (i.e., the URL actually starts with file://), browsers may treat each file: URL as a distinct origin, or at least treat different directories as different origins.

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

Sidebar

Related Questions

I'm making a mobile application in HTML / javascript where the user at some
For mobile web development: I am making a website which asks the user (on
So i'm making a mobile web application that is supposed to take up a
I am making a mobile web app using jquery mobile and jquery. Now I
I'm making a mobile web app. At the top of the page, I have
----EDIT---- I am making an jquery mobile application. Now I want to check which
I'm making a phonegap application with jQuery Mobile. Here the thing. I've got an
I am making an application for a windows mobile smartphone, and I would like
I am making mobile web app in Html, css, javascript, jquery . I am
I am making a mobile web site and i need a a day scheduler

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.