Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: redis driver _get_lock set lock_key problem
Post: RE: redis driver _get_lock set lock_key problem

(09-12-2018, 09:02 AM)jimpannell Wrote: Code:session_start([    'read_and_close' => true, ]); Is that something to try or am I completely on the wrong track? If you never intend on writing any s...
spjonez Issues 10 7,707 09-12-2018, 12:16 PM
    Thread: redis driver _get_lock set lock_key problem
Post: RE: redis driver _get_lock set lock_key problem

There's a few things you can do to reduce this, they won't fix it completely but it will help. 1) Upgrade to the latest versions of Redis and phpredis. 2) Call session_write_close() in every request ...
spjonez Issues 10 7,707 09-11-2018, 12:18 PM
    Thread: Autoload DB and don't connect until a query is made
Post: Autoload DB and don't connect until a query is mad...

It's handy to be able to autoload the database library but in some cases (webhooks for example) this can cause issues when you're flooded with requests. Since it auto connects even if you have code in...
spjonez CodeIgniter 3.x 0 1,057 07-17-2018, 05:51 PM
    Thread: The future of CI
Post: The future of CI

I've often wondered how the new developers imagine the future of CI. Version 4 is a massive step in the right direction and I'm impressed by what I've seen so far. Has BCIT released an introspective ...
spjonez CodeIgniter 4 Discussion 9 6,380 03-12-2018, 03:12 PM
    Thread: PHP Fatal error in Session_files_driver.php on line 247
Post: RE: PHP Fatal error in Session_files_driver.php on...

You have some bad code somewhere that's hanging.
spjonez Issues 4 10,293 11-01-2017, 09:09 AM
    Thread: Redis session regression in 3.1.6
Post: Redis session regression in 3.1.6

The fix in this PR has caused some weird issues for us: https://github.com/bcit-ci/CodeIgniter/pull/5170 The session library is autoloaded and we're using the Redis session driver. With that patch we...
spjonez Issues 0 1,422 10-06-2017, 11:05 AM
    Thread: CodeIgniter 3.1.6 Released
Post: RE: CodeIgniter 3.1.6 Released

(09-25-2017, 11:34 AM)Narf Wrote: (09-25-2017, 11:24 AM)spjonez Wrote: Thanks! Looking at the Redis changes, are they only for obtaining a lock and not related to releasing locks? https://github.c...
spjonez News & Discussion 44 70,242 09-25-2017, 12:41 PM
    Thread: CodeIgniter 3.1.6 Released
Post: RE: CodeIgniter 3.1.6 Released

Thanks! Looking at the Redis changes, are they only for obtaining a lock and not related to releasing locks?
spjonez News & Discussion 44 70,242 09-25-2017, 11:24 AM
    Thread: Sessions Performance Issue (php7.1, CI 3.1.5)
Post: RE: Sessions Performance Issue (php7.1, CI 3.1.5)

You can read from sessions after calling session_write_close( ); but you can't write to them. In every controller method either call this first inside your method or immediately after the last session...
spjonez CodeIgniter 3.x 7 9,856 09-22-2017, 11:17 AM
    Thread: Better update routine?
Post: RE: Better update routine?

The release notes they tell you exactly how to upgrade. But if you really wanted to you could fork the project and send yourself a PR to sync back with master which would pick up config changes in you...
spjonez General Help 22 17,510 09-20-2017, 06:40 AM
    Thread: communication between controllers
Post: RE: communication between controllers

A request should route through a single controller. In MVC controllers should not cross talk.
spjonez Best Practices 2 3,270 09-19-2017, 06:29 AM
    Thread: get_instance now NULL in MY_Exceptions [CI 3.1.5]
Post: RE: get_instance now NULL in MY_Exceptions [CI 3.1...

Probably not the most elegant solution but we do a redirect to our error controller. PHP Code:<?php if ( !defined( 'BASEPATH' ) ) exit( 'No direct ...
spjonez CodeIgniter 3.x 4 3,712 09-15-2017, 05:29 AM
    Thread: Stack Overflow (banging my head against the wall)
Post: RE: Stack Overflow (banging my head against the wa...

I wouldn't worry about it. There's a bunch of reasons this happens and it's unlikely to stop. More people check SO than here. You're more likely to get an immediate response. A lot of questions are u...
spjonez Lounge 10 7,042 09-13-2017, 12:58 PM
    Thread: Do you use database client compression?
Post: Do you use database client compression?

I've been playing around with the compress and stricton database config options and wondered if anyone has done benchmarks on the compress setting. In our setup the DB is a separate VPS inside a VPC (...
spjonez Best Practices 0 1,279 09-07-2017, 11:59 AM
    Thread: Server config causing CSRF triggers
Post: RE: Server config causing CSRF triggers

(09-07-2017, 06:47 AM)objecttothis Wrote: csrf_regenerate is set to true and so far the AJAX calls haven't been doing things like giving a 200 on the first and 403 on subsequent. As long as only one...
spjonez General Help 18 9,205 09-07-2017, 11:26 AM
    Thread: Server config causing CSRF triggers
Post: RE: Server config causing CSRF triggers

Is cookie_httponly set to false? If security is your primary concern this should be set to true which will break the code you posted. Instead of reading the cookie from JS, return the new token with e...
spjonez General Help 18 9,205 09-07-2017, 06:33 AM
    Thread: Server config causing CSRF triggers
Post: RE: Server config causing CSRF triggers

Quote:- I've hardened my FAMP stack and one or more of those customizations triggers CSRF in CI 3.1.2. - I need to debug to get down to what exactly is causing the issue. Put die statements in the ...
spjonez General Help 18 9,205 08-23-2017, 05:55 AM
    Thread: Server config causing CSRF triggers
Post: RE: Server config causing CSRF triggers

Quote:The issue I am having with CSRF happens on an SSL connection and a non-encrypted connection. Enabling both cookie_httponly and cookie_secure and connecting via HTTPS still produces the 403 error...
spjonez General Help 18 9,205 08-22-2017, 01:04 PM
    Thread: Server config causing CSRF triggers
Post: RE: Server config causing CSRF triggers

If possible you should enforce HTTPS for everything. It's required for HTTP/2 so if you ever want to use the new protocol you'll need to make that change eventually.
spjonez General Help 18 9,205 08-22-2017, 11:00 AM
    Thread: Server config causing CSRF triggers
Post: RE: Server config causing CSRF triggers

(08-22-2017, 03:52 AM)objecttothis Wrote: was causing CI CSRF protection to trigger.  IMO this was not a good design decision for CI to use the cookie for the  CSRF token because it prevents server-...
spjonez General Help 18 9,205 08-22-2017, 06:18 AM

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.