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

  • Home
  • SEARCH
  • 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 8830177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:00:44+00:00 2026-06-14T08:00:44+00:00

I have a lobby written in HTML5 / javascript. A .json file provides a

  • 0

I have a lobby written in HTML5 / javascript. A .json file provides a few config parameters for the lobby and for the various other HTML5 games that can be launched from it. These parameters can either be passed to the games in the window.open string ( in the form of:

window.open(http://www.myLovelyDomain.com/index.html?username=bob&token=aaaXXX")

or could be held in localStorage and accessed by the game following it’s launch.

My question is, what is the best (most secure/likely to cause least errors/etc) method? I know users can turn off localStorage, but I don’t know how many do. Any 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-06-14T08:00:46+00:00Added an answer on June 14, 2026 at 8:00 am

    Advantages of localStorage over URL query strings

    • Less likely to be user edited
    • Less likely to be copy&pasted to someone else
    • Can persist across sessions
    • Wider choice of characters
    • (Marginally) less bandwidth usage (shorter GETs)
    • Can store whole files
    • Invisible to basic user

    Disadvantages

    • Server doesn’t get access to the variables without additional ajax
    • May be harder to debug
    • May need extra checks if things change every session (or consider sessionStorage)
    • Not supported by old browsers
    • Can’t use cross-domain directly (may be advantage, depending on how you look at it)

    For supported list and max sizes see here.

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

Sidebar

Related Questions

I have a multiplayer game lobby up where users can create private chatrooms and
have written this little class, which generates a UUID every time an object of
I have encountered a problem that I cannot quite figure out. Would be super
I have the following HTML: <label>Lobby Template:</label> I want to convert it to jquery
I have multiple strings that are in the following format: 12/18/2009 02:08:26 Admitted Doe,
Have a photography site that I want to prevent image copying from. How can
I have a video kiosk setup in my lobby, it lets people check in
Have a bunch of WCF REST services hosted on Azure that access a SQL
I have a big red5 project and it seems that at some point a
What i'm trying to do is delete the rows in lobby table that don't

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.