how to create session in codeigniter | session in codeigniter



In this video, we will learn two ways of initializing the session in CodeIgniter.

BUY BEST BOOK FOR CODEIGNITER FROM AMAZON
click on below link

https://amzn.to/2AzSVlf

So It is just like core PHP, if you know about how to use session in PHP then it is a very simple task for you.
To use the session
Step 1:- First we need to initialize the session in an autoload.php file
Step2:- set the session variable in the controller.

We can also destroy our session by using session_destroy() function, it will unset all the session variables.

For more info please watch the video. You will see that it is so easy to use session in Codeigniter.

source

Reply


Build A Site Info