Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: redis driver _get_lock set lock_key problem
Post: RE: redis driver _get_lock set lock_key problem

jimpannell Wrote: (09-12-2018, 09:02 AM) -- Code: -- session_start([    'read_and_close' => true, ]); -- Is that something to try or am I completely on the wrong track? -- If you never intend o...
13,524 Views
10 Replies
09-12-2018, 12:16 PM
spjonez
    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 reque...
13,524 Views
10 Replies
09-11-2018, 12:18 PM
spjonez
    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...
1,638 Views
0 Replies
07-17-2018, 05:51 PM
spjonez
    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 introspectiv...
11,585 Views
9 Replies
03-12-2018, 03:12 PM
spjonez
    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.
13,838 Views
4 Replies
11-01-2017, 09:09 AM
spjonez
    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...
1,978 Views
0 Replies
10-06-2017, 11:05 AM
spjonez
    Thread: CodeIgniter 3.1.6 Released
Post: RE: CodeIgniter 3.1.6 Released

Narf Wrote: (09-25-2017, 11:34 AM) -- spjonez Wrote: (09-25-2017, 11:24 AM) -- Thanks! Looking at the Redis changes, are they only for obtaining a lock and not related to releasing locks (https://fo...
100,599 Views
44 Replies
09-25-2017, 12:41 PM
spjonez
    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 (https://forum.codeigniter.com/thread-65249.html)?
100,599 Views
44 Replies
09-25-2017, 11:24 AM
spjonez
    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...
13,817 Views
7 Replies
09-22-2017, 11:17 AM
spjonez
    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...
32,547 Views
22 Replies
09-20-2017, 06:40 AM
spjonez
    Thread: communication between controllers
Post: RE: communication between controllers

A request should route through a single controller. In MVC controllers should not cross talk.
5,423 Views
2 Replies
09-19-2017, 06:29 AM
spjonez
    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: -- --
5,876 Views
4 Replies
09-15-2017, 05:29 AM
spjonez
    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...
12,101 Views
10 Replies
09-13-2017, 12:58 PM
spjonez
    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 (...
1,853 Views
0 Replies
09-07-2017, 11:59 AM
spjonez
    Thread: Server config causing CSRF triggers
Post: RE: Server config causing CSRF triggers

objecttothis Wrote: (09-07-2017, 06:47 AM) -- 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 o...
17,081 Views
18 Replies
09-07-2017, 11:26 AM
spjonez
    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...
17,081 Views
18 Replies
09-07-2017, 06:33 AM
spjonez
    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 stat...
17,081 Views
18 Replies
08-23-2017, 05:55 AM
spjonez
    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 40...
17,081 Views
18 Replies
08-22-2017, 01:04 PM
spjonez
    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.
17,081 Views
18 Replies
08-22-2017, 11:00 AM
spjonez
    Thread: Server config causing CSRF triggers
Post: RE: Server config causing CSRF triggers

objecttothis Wrote: (08-22-2017, 03:52 AM) -- 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 serv...
17,081 Views
18 Replies
08-22-2017, 06:18 AM
spjonez

Theme © iAndrew 2016 - Forum software by © MyBB