1. Home >
  2. Apps >
  3. Groups >

Can variable retain a value in PHP?

Question asked by Whats In Name in #PHP on Mar 7, 2013
Whats In Name
Whats In Name · Mar 7, 2013
Rank B3 - LEADER
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? Posted in: #PHP
Manish Goyal
Manish Goyal · Mar 21, 2013
Rank A2 - PRO
no it is not possible but through cookies yes you can , until some one deletes them through browser directly

Thanks
Prasad Ajinkya
Prasad Ajinkya · Mar 22, 2013
Rank B1 - LEADER
Another option is to use the localstorage in HTML5
https://www.w3schools.com/html/html5_webstorage.asp

You must log-in or sign-up to reply to this post.

Click to Log-In or Sign-Up