Welcome Guest, Not a member yet? Register   Sign In
Search Results
  Question Thread: [4.5.5] Strangeness with CSRF, sessions, AJAX
Post: RE: [4.5.5] Strangeness with CSRF, sessions, AJAX

No takers?
472 Views
2 Replies
12-03-2024, 09:01 AM
joho
    Thread: [4.5.5] Strangeness with CSRF, sessions, AJAX
Post: RE: [4.5.5] Strangeness with CSRF, sessions, AJAX

Follow-up: As an interesting side note, even if I mask the added header (my configured CSRF), CI still seems to hit on it, process it, and remove it. Like this: Code: -- X-abcThisIsMyCSRFHeader...
472 Views
2 Replies
10-30-2024, 03:24 AM
joho
  Question Thread: [4.5.5] Strangeness with CSRF, sessions, AJAX
Post: [4.5.5] Strangeness with CSRF, sessions, AJAX

I'm using CI 4.5.5 and session based CSRF. I have token randomization enabled, and token regeneration disabled. I have set custom a custom token name, a custom header name, and I've set redirect...
472 Views
2 Replies
10-30-2024, 01:45 AM
joho
  Question Thread: How to handle "fatal errors" by displaying something "useful"
Post: How to handle "fatal errors" by displaying somethi...

What is the recommended/intended way to die gracefully in a CI4 application? Say I have requirements of the existence of a session variable or some other critical requirement. In any given function, ...
515 Views
3 Replies
09-13-2024, 02:59 AM
joho
    Thread: $session->destroy() throws exception
Post: RE: $session->destroy() throws exception

Interesting. And what happens if you add one more call to $session->destroy()?
831 Views
5 Replies
04-11-2024, 10:34 PM
joho
    Thread: $session->destroy() throws exception
Post: RE: $session->destroy() throws exception

Bosborne Wrote: (04-11-2024, 03:36 AM) -- You are assigning variables to session variables that may not exist. If that session variable does not exist you will get an exception.  If you are running C...
831 Views
5 Replies
04-11-2024, 06:01 AM
joho
    Thread: VIRUS reported after Chrome update this morning! [SOLVED]
Post: RE: VIRUS reported after Chrome update this mornin...

Where does the Wacatac.H!ml come from? https://answers.microsoft.com/en-us/windows/forum/all/windows-defender-trojanscriptwacatachml-keeps/93ef0ec1-3170-48d6-86af-5373ff6c3cd1
983 Views
4 Replies
04-11-2024, 01:47 AM
joho
    Thread: $session->destroy() throws exception
Post: $session->destroy() throws exception

Why does this throw an exception? PHP Code: --         $session = \Config\Services::session();         $session_username = $session->get( 'session_username' );         $session_login_time = $session...
831 Views
5 Replies
04-11-2024, 01:44 AM
joho
    Thread: Global session check and re-direct
Post: RE: Global session check and re-direct

I ended up doing it in a global filter, we'll see how that goes. Thank you for your comments.
748 Views
4 Replies
04-04-2024, 06:03 AM
joho
  Question Thread: Global session check and re-direct
Post: Global session check and re-direct

Scenario: Segmented application, with two or more parts, handling different aspects of access. Similar to how an OAuth situation would look. In the main application, I need to check if there's a va...
748 Views
4 Replies
04-04-2024, 01:49 AM
joho
    Thread: Do not use the CI 4 session library
Post: RE: Do not use the CI 4 session library

Most excellent news :)
2,590 Views
10 Replies
03-28-2024, 04:58 PM
joho
    Thread: Do not use the CI 4 session library
Post: RE: Do not use the CI 4 session library

ElTomTom Wrote: (03-28-2024, 06:57 AM) -- joho Wrote: (03-26-2024, 04:04 PM) -- Just out of curiosity, because I use PHP session settings geared for Redis too, what is it with CI4 sessions that does...
2,590 Views
10 Replies
03-28-2024, 07:49 AM
joho
    Thread: E-mail and UTF-8, mb_, etc.
Post: RE: E-mail and UTF-8, mb_, etc.

My comments about multi-byte handling still stands, I created my own setMessageText() function that is a mix of what was there and something that handles and . This assumes I send my message as HTML:...
698 Views
1 Replies
03-27-2024, 07:13 AM
joho
    Thread: CI4 support MariaDB?
Post: RE: CI4 support MariaDB?

InsiteFX Wrote: (03-27-2024, 04:23 AM) -- We are seeing increasing requests for migrations from MariaDB to MySQL.DB and dolphins MariaDB has significantly diverged, and is no longer drop-in compat...
4,493 Views
11 Replies
03-27-2024, 07:06 AM
joho
  Question Thread: E-mail and UTF-8, mb_, etc.
Post: E-mail and UTF-8, mb_, etc.

Looking at the Email class in CI4, shouldn't things like setMessage() and possibly other functions utilize mb_ functions for trimming, replacing, and so on to support multi-byte data properly? This in...
698 Views
1 Replies
03-27-2024, 02:07 AM
joho
    Thread: Sharing things between CI4 instances
Post: RE: Sharing things between CI4 instances

kenjis Wrote: (03-27-2024, 01:30 AM) -- Do you mean that you want to have only one repository? Then, like this: https://codeigniter4.github.io/CodeIgniter4/general/managing_apps.html#running-multip...
1,062 Views
4 Replies
03-27-2024, 01:39 AM
joho
    Thread: Sharing things between CI4 instances
Post: RE: Sharing things between CI4 instances

kenjis Wrote: (03-27-2024, 01:01 AM) -- If you create Composer packages, you can share the code easily. https://codeigniter4.github.io/CodeIgniter4/extending/composer_packages.html You don't need...
1,062 Views
4 Replies
03-27-2024, 01:13 AM
joho
    Thread: Sharing things between CI4 instances
Post: Sharing things between CI4 instances

For a number of reasons, I'm toying with a "split app setup". There are basically three separate and isolated CI4 "instances" or "installations" serving the same platform. One is used for signing up/r...
1,062 Views
4 Replies
03-27-2024, 12:38 AM
joho
    Thread: CI4 support MariaDB?
Post: RE: CI4 support MariaDB?

demyr Wrote: (11-22-2023, 12:06 AM) -- InsiteFX Wrote: (10-26-2023, 09:23 PM) -- I use it all the time not MySQL it works just fine -- @"InsiteFX"  Are you on a shared hosting plan and if yes, how...
4,493 Views
11 Replies
03-27-2024, 12:35 AM
joho
    Thread: Transient support for Settings
Post: RE: Transient support for Settings

The use case range from settings that are related to a given window of time. Basically, I guess you could say that a setting with no TTL is a permanent setting, whereas a setting with a TTL value is a...
831 Views
3 Replies
03-27-2024, 12:28 AM
joho

Theme © iAndrew 2016 - Forum software by © MyBB