Skip to main content
Stack Overflow
  1. About
  2. For Teams

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

Draft saved
Draft discarded
Cancel
3
  • So you want to store a value, so that it "survives" navigation between different pages. Then you should either store it client-side in local- or sessionStorage, or server-side, in the session. (Which one might be more appropriate, depends on specifics - which this question so far doesn’t really provide.) Commented Jan 27, 2020 at 13:53
  • $_SESSION looks like a valid option for that. Commented Jan 27, 2020 at 13:55
  • @04FS Even if I store it in session variable, can I get the values from server side to client? And is it the effective way to do it? Commented Jan 27, 2020 at 13:55

default

AltStyle によって変換されたページ (->オリジナル) /