View Feed
group-icon
PHP Programmers
Community for PHP Programmers : Ask questions, doubts and help each other get better at PHP
299 Members
Join this group to post and comment.
Whats In Name
Whats In Name • Mar 7, 2013

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?
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
Another option is to use the localstorage in HTML5
https://www.w3schools.com/html/html5_webstorage.asp

Share this content on your social channels -