CrazyEngineers
  • Can variable retain a value in PHP?

    Whats In Name

    Whats In Name

    @whats-in-name-KdgM7o
    Updated: Oct 22, 2024
    Views: 941
    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?
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • Manish Goyal

    MemberMar 21, 2013

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

    Thanks
    Are you sure? This action cannot be undone.
    Cancel
  • Prasad Ajinkya

    MemberMar 22, 2013

    Another option is to use the localstorage in HTML5
    <a href="https://www.w3schools.com/html/html5_webstorage.asp" target="_blank" rel="nofollow noopener noreferrer">HTML Web Storage API</a>
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register