Cookie Concept in CI

What is Cookie?

A cookie is used to store information under a web browser, every browser contains a separate directory to store data under the cookie. The cookie will be private. The session will be stored data under the cookie folder by default.

Step for Cookie:-

1 Load cookie helper in autoload.php

2  first set cookie


3   get cookie data

    $data= array('a'=>$this->input->cookie('cuid'),'b'=>$this->input->cookie('cpwd'));
    echo $this->input->cookie('key')

4 delete cookie data

Post a Comment


POST Answer of Questions and ASK to Doubt

Post a Comment (0)