Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Database model insert always returns 0
Post: RE: Database model insert always returns 0

Although CI has a lot of documentation, I find it's not particularly detailed... which means looking at the system code to work out what's happening under the bonnet when one wants to do anything more...
688 Views
5 Replies
02-24-2022, 01:06 AM
Gary
    Thread: CSRF never fails
Post: RE: CSRF never fails

Finger trouble, sorry, wrong line! I'll correct it to make the question more sensible, thanks Kenjis. That being said, I wasn't implying the line was the cause... it is only the final "deciding" tes...
547 Views
2 Replies
02-24-2022, 12:54 AM
Gary
  Question Thread: CSRF never fails
Post: CSRF never fails

Is it just me, or is anyone else experiencing an issue with the CSRF Filter never failing? Security.php's function verify(RequestInterface $request) has the following line, that for the life of me, I...
547 Views
2 Replies
02-23-2022, 08:43 AM
Gary
    Thread: Database model insert always returns 0
Post: RE: Database model insert always returns 0

Try calling it like this: Code: -- $model->insert($data, TRUE); // insertID is returned by an insert/modify/save/update function --
688 Views
5 Replies
02-23-2022, 08:32 AM
Gary
    Thread: Strange Behavior
Post: RE: Strange Behavior

Not sure of your exact "different" results, but recently I've also found some anomalous behavior in several of my long-time-tested-and-trusted custom Filters, that I have also yet to explain. Sorry, ...
408 Views
1 Replies
02-23-2022, 08:02 AM
Gary
  Question Thread: CSP Question
Post: CSP Question

Having not had much feedback on my last CSP questions, here's a more directed question: Why, when $CSPEnabled is TRUE, would a page refresh/new page load not have the CSP header/s injected into the...
360 Views
0 Replies
02-23-2022, 05:14 AM
Gary
    Thread: Fix Paginate
Post: RE: Fix Paginate

I had a problem with the pager, from perhaps a year ago... I did put a few posts about it on the forum after I was convinced there was a problem, but nobody else seemed to experience it (?). My fix...
1,172 Views
5 Replies
02-19-2022, 03:35 PM
Gary
    Thread: Spaced out on Cookies
Post: RE: Spaced out on Cookies

[UPDATE] This appears to be linked to Filter exclusions, whereby when an exclusion is applied, CI totally ignores any of the ContentSecurityPolicy stipulations (and doesn't even bother processing this...
642 Views
5 Replies
02-19-2022, 06:36 AM
Gary
    Thread: Spaced out on Cookies
Post: RE: Spaced out on Cookies

@ kenjis That's the cause of the browser's warning/complaint... these directives are not being inserted into the headers (by CI) into the server's response. I'm still trying to figure out why they d...
642 Views
5 Replies
02-18-2022, 05:04 PM
Gary
    Thread: Spaced out on Cookies
Post: RE: Spaced out on Cookies

@ paulbalandan The cookie response is a bit odd... I always get this one:        Cookie “pot” will be soon rejected because it has the “SameSite” attribute set to “None” or an invalid value, without...
642 Views
5 Replies
02-18-2022, 02:25 PM
Gary
  Question Thread: Spaced out on Cookies
Post: Spaced out on Cookies

Has anyone managed to get to the bottom of this ever-present complaint in browsers from quite some time ago:       Cookie “pot” will be soon rejected because it has the “sameSite” attribute set to “n...
642 Views
5 Replies
02-17-2022, 05:15 PM
Gary
    Thread: Let's Encrypt Verification & CodeIgniter
Post: RE: Let's Encrypt Verification & CodeIgniter

Thanks for the link, BilltheCat. Although I already had something similar to what is suggested in the discussion in your link, I found one of the posts had a better and tidier version, thank you. Th...
585 Views
2 Replies
02-17-2022, 03:37 PM
Gary
  Question Thread: Let's Encrypt Verification & CodeIgniter
Post: Let's Encrypt Verification & CodeIgniter

I've recently been experimenting with automated certificate renewals (having previously done it manually). What I've found is that on websites not created using CI, the whole process is painless.  Ho...
585 Views
2 Replies
02-08-2022, 10:48 AM
Gary
    Thread: Filters and $_POST (or $request post vars)
Post: RE: Filters and $_POST (or $request post vars)

Try using $_REQUEST['Maint_Userid']... or whatever the form/post variable's name it is you want to access from inside the Filter. Code: -- public function before(RequestInterface $request, $argumen...
1,097 Views
4 Replies
07-29-2021, 02:19 PM
Gary
    Thread: Craptcha
Post: RE: Craptcha

superior Wrote: (07-12-2021, 07:51 AM) -- You could install the 'Privacy Pass (https://chrome.google.com/webstore/detail/privacy-pass/ajhmfdgkijocedmfjonnpjfojldioehi)' extension, you can earn points...
1,512 Views
6 Replies
07-16-2021, 12:00 PM
Gary
    Thread: creating a delay
Post: RE: creating a delay

richb201 Wrote: (07-10-2021, 05:57 AM) -- Bottom line is that I don't need a delay. What I need is a way to force a form submission. Will this possibly work? Code: -- header("Cache-Control: no-cac...
2,757 Views
13 Replies
07-11-2021, 08:45 AM
Gary
    Thread: List all sessions
Post: RE: List all sessions

I'm with paulkd on this one... using a database table is pretty simple and sidesteps the (purposeful) isolation between sessions PHP guarantees. When I implemented it, it was as an after-though, and ...
1,077 Views
4 Replies
07-07-2021, 01:06 PM
Gary
    Thread: A session on $_SESSION
Post: RE: A session on $_SESSION

Ok... I'd be inclined to want to label this as a bug in the framework. Here's one work-around: In \App\Config\App.php, changing $sessionExpiration to any (probably large) non-zero constant: Code:...
2,011 Views
8 Replies
07-07-2021, 04:23 AM
Gary
    Thread: Active Page - Pager: Segments - Bug?
Post: RE: Active Page - Pager: Segments - Bug?

dazzafact Wrote: (07-05-2021, 02:33 AM) -- Hello, i try to get started with the Pager. (for example my Listsite on Page 6) $pager = \Config\Services::pager(); $pager->setPath('/vereine/p'); $data['...
648 Views
1 Replies
07-06-2021, 12:54 PM
Gary
    Thread: A session on $_SESSION
Post: RE: A session on $_SESSION

InsiteFX Wrote: (07-03-2021, 09:02 PM) -- This is how I load my sessions, ignore the helper files. PHP Code: --
2,011 Views
8 Replies
07-06-2021, 12:26 PM
Gary

Theme © iAndrew 2016 - Forum software by © MyBB