Can variable retain a value in PHP?

Can we retain a variable value in PHP after closing the application(with a new session every time),without saving it to any database or file?If yes,how?

Replies

  • Manish Goyal
    Manish Goyal
    no it is not possible but through cookies yes you can , until some one deletes them through browser directly

    Thanks
  • Prasad Ajinkya
    Prasad Ajinkya
    Another option is to use the localstorage in HTML5
    HTML Web Storage API

You are reading an archived discussion.

Related Posts

Can we download Talking Tom app in Nokia-C1-01 handset? If yes, then how.
we know that magnetic flux travels from north pole to south pole.. wt happens if we place a super conductor(which doesn't allow magnetic flux to pass form it) in middle...
Data signals may now be transmitted over illuminating LEDs, if a consortium of universities led by Stathclyde get their way. WiFi routers may no longer be needed. https://machinedesign.com/article/le...@ttkprestige.com&YM_MID=1378101&sfvc4enews=42
CEans, We've been notified of a possible issue/bug on our site. When any discussion thread is open (like this one, for example) the browser tab shows the title of the...
Our year created 5 different types of a miniature of transportation system. And i just want it to share here...