Flashdata (Temporary Session Data)

Posted on: Tuesday November 19, 2024

Flashdata is temporary session data that is available for the next request only. Example: Setting Flashdata [crayon-6895e4e5556c6615374986/] Example: Retrieving Flashdata [...]

Read More

Session in CI4

Posted on: Tuesday November 19, 2024

Storing Data in Session Use the session() helper function or the Config\Services::session() method to access the session instance. Storing Grouped Session Data Use the session()->set() method to [...]

Read More

Routes in CI4

Posted on: Tuesday November 19, 2024

Example of Routes (app\Config\Routes.php): [crayon-6895e4e555e2a665274813/] Using parameter (:any) [crayon-6895e4e555e30861507202/] [...]

Read More

csrf in CodeIgniter 4

Posted on: Tuesday June 11, 2024

CSRF/csrf in ci4 Enable CSRF: Go to app/Config/Filters.php  Search for public array $methods and replace with: [crayon-6895e4e555ffe651967958/]   Use (Just paste under <from>) : <input [...]

Read More

Create set and get session in CI 4

Posted on: Thursday October 12, 2023

Create, set and get the session in CodeIgniter 4 [crayon-6895e4e55656b565739531/] In view, you have to call the session again where you want to get session [crayon-6895e4e556570665679363/] [...]

Read More

Multi time store data in PHP session

Posted on: Wednesday March 22, 2023

Store multiple data in a session, you can store multiple times data in a PHP session without destroying previous session data. Please find PHP method below: [crayon-6895e4e5566d8870621676/] [...]

Read More