Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Do not use the CI 4 session library
Post: RE: Do not use the CI 4 session library

kenjis Wrote: (03-28-2024, 03:27 PM) -- Session without lock has issues on race conditions. If it is not read only session, session data may be lost. Read https://codeigniter4.github.io/CodeIgniter4...
513 Views
8 Replies
04-10-2024, 11:29 AM
ElTomTom
    Thread: Do not use the CI 4 session library
Post: RE: Do not use the CI 4 session library

joho Wrote: (03-26-2024, 04:04 PM) -- ElTomTom Wrote: (03-25-2024, 07:14 AM) -- Today I have the PHP Session with Redis configuration, with fallback, name configuration, etc., all defined in my php....
513 Views
8 Replies
03-28-2024, 06:57 AM
ElTomTom
    Thread: Do not use the CI 4 session library
Post: Do not use the CI 4 session library

Today I have the PHP Session with Redis configuration, with fallback, name configuration, etc., all defined in my php.ini file, however in CI4 I cannot use PHP's native session_start() to create my se...
513 Views
8 Replies
03-25-2024, 07:14 AM
ElTomTom
    Thread: Do not autoload database to controller
Post: Do not autoload database to controller

I have several controllers in my project that use the database, because of this, my autoload.php file has the database resource inserted for libraries. Code: -- $autoload['libraries'] = array('datab...
330 Views
0 Replies
10-16-2023, 11:23 AM
ElTomTom
    Thread: Session usage with Redis is slow
Post: Session usage with Redis is slow

I'm migrating my application with CodeIgniter 3 to use Redis as a session manager, but as it makes many requests in AJAX I noticed that they tend to take longer, 11 requests that in all took 300ms now...
553 Views
1 Replies
08-16-2023, 12:28 PM
ElTomTom
    Thread: Load Composer Modules into Controllers
Post: Load Composer Modules into Controllers

I use CodeIgniter 3 and I need composer to install some libraries needed for my application, like 2FA token generation, crawler detector, elephant IO, etc. To use these components I load them at the ...
1,131 Views
0 Replies
06-01-2022, 11:00 AM
ElTomTom
    Thread: Using Sessions for High Traffic with AJAX
Post: RE: Using Sessions for High Traffic with AJAX

I still use CodeIgniter version 3. I'm basing myself on this sentence from the session documentation (Session Library — CodeIgniter 3.1.13 documentation (https://codeigniter.com/userguide3/librarie...
2,434 Views
3 Replies
05-19-2022, 07:22 AM
ElTomTom
    Thread: Memcached throws errors when using it as session handler
Post: Memcached throws errors when using it as session h...

We are trying to use Memcached (1.5.22) as a session handler on a server with Apache + PHP 7.4 and CodeIgniter 3.1.11, however, we have observed random errors with the message below: Quote: -- Co...
1,267 Views
0 Replies
05-12-2022, 05:50 PM
ElTomTom
    Thread: Using Sessions for High Traffic with AJAX
Post: Using Sessions for High Traffic with AJAX

I was reading the CodeIgniter 3 documentation on using sessions and high traffic with AJAX, and it recommends using session_write_close(). My application has functions that write and read directly fr...
2,434 Views
3 Replies
05-12-2022, 05:46 PM
ElTomTom
    Thread: Set application name to database
Post: Set application name to database

PostgreSQL allows you to define the name of the application, so that we can know which app is running a connection. Does CodeIgniter's database.php have any parameters to define this?
1,407 Views
0 Replies
04-07-2022, 02:53 PM
ElTomTom
  Bug Thread: Query Builder Nest Joins at the end of the Query
Post: Query Builder Nest Joins at the end of the Query

I'm creating a query with Query Builder for PostgreSQL, my query has tables and joins for each table. It so happens that PostgreSQL requires that joins that use a table must be below it in the Query....
1,730 Views
1 Replies
03-30-2022, 02:20 PM
ElTomTom
    Thread: CodeIgniter with PostgreSQL and PgBouncer in Transaction mode
Post: CodeIgniter with PostgreSQL and PgBouncer in Trans...

I've always used PgBouncer in session mode, but its performance isn't so good, as PHP scripts that run for a long time end up with a long session connected to the database (even for minutes), without ...
953 Views
0 Replies
11-04-2021, 01:40 PM
ElTomTom
    Thread: Can anyone help me with this one.
Post: RE: Can anyone help me with this one.

Fast Option: PHP Code: -- $query = $this->db->query('YOUR QUERY HERE'); -- Or maybe create a view (without order) and use like a table.
2,160 Views
2 Replies
10-22-2020, 05:52 AM
ElTomTom
    Thread: CodeIgniter with PostgreSQL and PgBouncer in Transaction mode
Post: CodeIgniter with PostgreSQL and PgBouncer in Trans...

Previously we used PostgreSQL 9 with PgBouncer in session mode, and with that was able to easily create a new record and get the last ID with db->insert_id('table', 'pk_column'). But the use of the...
1,291 Views
0 Replies
10-21-2020, 01:20 PM
ElTomTom
  Exclamation Thread: Connect to PostgreSQL DB with DSN and SSL Certificate
Post: Connect to PostgreSQL DB with DSN and SSL Certific...

I currently use the database configuration using array, in a simple way. But I will need to migrate to a PostgreSQL database that requires ssl (required) mode and also has a CRT certificate. How d...
1,303 Views
0 Replies
10-16-2020, 12:38 PM
ElTomTom
    Thread: Block access to content with htaccess
Post: Block access to content with htaccess

Is there a problem creating an htaccess file that blocks direct access to PHP files? My plan is to put this file inside the application folder and recursively this block will occur for other folder...
3,100 Views
1 Replies
06-08-2020, 10:09 AM
ElTomTom
    Thread: Removing and Adding Custom Headers in Email Helper
Post: Removing and Adding Custom Headers in Email Helper

How do I remove the X-PHP-Originating-Script and User-Agent header that are sent by CodeIgniter when using PHP's mail() function?
1,666 Views
1 Replies
03-05-2020, 05:28 PM
ElTomTom

Theme © iAndrew 2016 - Forum software by © MyBB