Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Can't read a session
Post: RE: Can't read a session

The problem is the file_lock which is blocked by AppArmor.
277 Views
5 Replies
05-10-2024, 01:05 PM
ElTomTom
    Thread: Can't read a session
Post: RE: Can't read a session

Even when setting the /tmp folder as the session location, the error continues to occur. ErrorException: session_start(): Failed to read session data: user (path: /tmp)
277 Views
5 Replies
05-05-2024, 11:06 AM
ElTomTom
    Thread: Can't read a session
Post: RE: Can't read a session

There is no reason to give write permission to /var/www/html/website and /var/www/html if only the writable and writable/session folders are to be written to. IMHO, it is no longer even safe to sto...
277 Views
5 Replies
05-04-2024, 05:38 PM
ElTomTom
    Thread: Can't read a session
Post: Can't read a session

We configure our project to use the default suggested by CodeIgniter for session configuration, we only changed the name of the cookie. We grant the permissions to the session directory in Ubuntu: ...
277 Views
5 Replies
05-03-2024, 11:26 AM
ElTomTom
    Thread: Do not use the CI 4 session library
Post: RE: Do not use the CI 4 session library

@kenjis My PHP.ini is configured to use Redis. If in the CodeIgniter settings I use FileHandler, it will ignore everything defined in PHP.ini, correct?
706 Views
10 Replies
04-29-2024, 12:20 PM
ElTomTom
    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...
706 Views
10 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....
706 Views
10 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...
706 Views
10 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...
361 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...
604 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,158 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,517 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,287 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,517 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,427 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,772 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 ...
974 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,234 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,315 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,342 Views
0 Replies
10-16-2020, 12:38 PM
ElTomTom

Theme © iAndrew 2016 - Forum software by © MyBB