![]() |
The session saves the data in session files (by default).
You can use the session data until the session expired/destroyed. Each visitor will have their own session file. So you should use Session for the data only for the visitor. The Config (or any other) object is not saved, just in memory and you can share it with Factories only in one request. You can save the object (if it can be serialized) with Cache. https://codeigniter4.github.io/CodeIgnit...ching.html |
Messages In This Thread |
What is the correct way to load data from a databse once for use everywhere? - by objecttothis - 02-11-2023, 08:32 AM
RE: What is the correct way to load data from a databse once for use everywhere? - by qury - 02-11-2023, 02:22 PM
RE: What is the correct way to load data from a databse once for use everywhere? - by kenjis - 02-11-2023, 02:52 PM
RE: What is the correct way to load data from a databse once for use everywhere? - by objecttothis - 02-11-2023, 03:16 PM
RE: What is the correct way to load data from a databse once for use everywhere? - by kenjis - 02-11-2023, 05:29 PM
RE: What is the correct way to load data from a databse once for use everywhere? - by objecttothis - 02-12-2023, 09:46 AM
RE: What is the correct way to load data from a databse once for use everywhere? - by InsiteFX - 02-14-2023, 12:54 AM
|