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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T02:20:58+00:00 2026-06-07T02:20:58+00:00

I am working on a geolocation project that is browser-based and geared specifically towards

  • 0

I am working on a geolocation project that is browser-based and geared specifically towards mobile browsers. I won’t go deep into details but overall the project uses geolocation across many pages and pieces of the project. The problem as it seems is that despite hitting “accept” and “allow” always on any given browser, when the user reloads a page they are prompted almost everytime to reallow the location authentication.

Which to me is weird, I’ve gone to sites with geolocation on it that it truly remembers that I allowed it, even if for the duration of me being on the site and not always. So with that I am wondering is there some type of special thing I need to do to store this authentication for a prolonged period on my project?

Currently I am using javascript-based geolocation through the google maps API and newer browser support for non ip based location. My project at the users discretion tracks where they are so other people connected to them can see where they are, where they have been, or where they plan to go (if they enter that in). There’s more as well, but that’s the basics. From a UX perspective, it’s annoying to have to prompt my users every time the browser reloads to reauth the location.

So any advice anyone is able to give, or insight on how to handle this would be appreciated.

  • 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-07T02:21:01+00:00Added an answer on June 7, 2026 at 2:21 am

    Cookies and sessions.

    Right after detecting the user geo-location you should store it in a Cookie.
    Every request from the server should look if there is a cookie set (with the user’s location) and act upon it.

    Over-simplified code:

    // get user location (via javascript)
    navigator.geolocation.getCurrentPosition(function(position) 
    {
      initialLocation = new google.maps.LatLng(position.coords.latitude,position.coords.longitude);
    }
    
    // ajax the server with the user location
    $.post('ajax/set_user_location.php', initialLocation);
    

    Then on the server you grab the initialLocation and save it in a cookie.

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

Sidebar

Related Questions

I am working on a mobile app and I have an initial page that
I am working on android geolocation application in that I have added marker for
How does GeoLocation service providers works? we are working with a company that provides
I am working on geolocation application in that I want to use Gps provider
I am working on an android geolocation app. In that I have added marker
I'm working on an IP geolocation library that uses the first three octets of
I am aware that there are many services which provide geolocation tools for working
I'm working on a mobile app with Phonegap which will use Geolocation. I used
I'm working on a mobile search, that uses your location to determine a zip
Are there any geo-location api services like hostip.info that working over https Free services

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.