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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T01:31:32+00:00 2026-06-03T01:31:32+00:00

I am very new to javascript and localstorage usage for HTML5. I am currently

  • 0

I am very new to javascript and localstorage usage for HTML5. I am currently using PHP sessions in my site and want to move over to localstorage as I am using cookies at this time to renew the sessions.

I understand that localstorage is a client-side function and not server-side like PHP so this makes it hard for me to figure out how to approach this.

All I want to do is set the localstorage values (which I have done already) but I need to be able to pass them back into PHP to re-establish them as SESSION variables (I have to do this as my site has over 100 pages and upwards of 50 session variables at one time so I would like to simply use the localstorage to regenerate the session variables instead of cookies.

If anyone can help me out with this it would be much appreciated. Thank you.

  • 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-03T01:31:33+00:00Added an answer on June 3, 2026 at 1:31 am

    Your going to need to use ajax, or some form of way to contact your server to allow this. The only way you can access that local storage is using a client side script(javascript), which in turn can do things with it. I don’t know ajax, but you should look into that. I also agree with @Truth, local storage is nice, especially if you don’t want to use cookies, but the only benefit is the user can use that local storage offline. So theres really no real reason you should do that. If you use cookies, you can access that info through your script. You could on the other hand use local storage as an alternative to cookies being disabled on the users browser.

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

Sidebar

Related Questions

I am very new in javascript and jquery. $.getJSON(idcheck.php?callback=?, { url: /*i want full
I am very new in Javascript. I want to make some basic stuffs that
I am very new to javascript and have been using the JQuery library quite
I'm very new with javascript. I'm trying to create a tag using document.write (with
I'm very new to javascript, I just want a reqular expression for validating phone
Very new to javascript here folks, so forgive the newbie question. I want to
I'm very new to Javascript and have a query about a script I'm using.
I'm very new to JavaScript in general so having trouble with this. Working with
I am very new to javascript, so forgive me for my ignorance. I am
I am very new at jQuery ... I've used Javascript many times and am

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.