Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Confusion over adding validation RuleSet classes
Post: RE: Confusion over adding validation RuleSet class...

Yep, that's what it was. My knowledge on namespacing is not great. Definitely time to get to grips with it. Thanks.
673 Views
3 Replies
06-12-2023, 03:17 AM
twistedpixel
    Thread: Confusion over adding validation RuleSet classes
Post: Confusion over adding validation RuleSet classes

Trying to get to grips with CI4 and I'm struggling to get my custom validation RuleSet class to load. I've read the documentation here (https://codeigniter4.github.io/userguide/libraries/validation...
673 Views
3 Replies
06-01-2023, 09:28 AM
twistedpixel
    Thread: Best practice for AJAX quieries
Post: RE: Best practice for AJAX quieries

Leo Wrote: (09-03-2018, 02:29 PM) -- Oh dude!JavaScript Cookie v2.2.0 js.cookie will save you a ton of headache with the csrf_protection! I discovered it 2-3 weeks ago, before I tried to avoid ajax ...
7,580 Views
8 Replies
09-04-2018, 03:01 AM
twistedpixel
    Thread: Encrypted session BLOB?
Post: RE: Encrypted session BLOB?

Interesting. Not quite sure how best to keep a second table in sync but I'll see what I can come up with! Thanks for your help and advice, I really appreciate it.
17,767 Views
14 Replies
02-01-2017, 04:08 PM
twistedpixel
    Thread: Encrypted session BLOB?
Post: RE: Encrypted session BLOB?

Narf Wrote: (02-01-2017, 11:23 AM) -- session_regenerate_id() will trigger a write() call, and thus - you can update it right after that. -- That's exactly what I tried. The line after session_rege...
17,767 Views
14 Replies
02-01-2017, 12:40 PM
twistedpixel
    Thread: Encrypted session BLOB?
Post: RE: Encrypted session BLOB?

Narf Wrote: (01-31-2017, 11:44 AM) -- ... override CI_Session:: sess_regenerate() to carry over the value when regeneration happens. ... -- Sorry to bug you again but I couldn't figure out what you ...
17,767 Views
14 Replies
02-01-2017, 11:16 AM
twistedpixel
    Thread: Any way to force sessions to *not* update on certain AJAX requests?
Post: RE: Any way to force sessions to *not* update on c...

Narf Wrote: (01-03-2017, 06:51 AM) -- @InsiteFX ... You're doing it yet again. You see "Session" and just paste the link to something else mentioning "session". This doesn't help. @twistedpix...
7,780 Views
6 Replies
02-01-2017, 11:04 AM
twistedpixel
    Thread: Encrypted session BLOB?
Post: RE: Encrypted session BLOB?

Narf Wrote: (01-31-2017, 11:44 AM) -- It's possible, but you don't really need to do that. You only need to update the column while doing login, logout and then override CI_Session::sess_regenerat...
17,767 Views
14 Replies
02-01-2017, 06:43 AM
twistedpixel
    Thread: Encrypted session BLOB?
Post: RE: Encrypted session BLOB?

Narf Wrote: (12-09-2016, 10:59 AM) -- ... You can even add more fields to the sessions table, so that it is tied to the session ID, if that's what you want ... -- Hi Narf, Sorry to revive this t...
17,767 Views
14 Replies
01-31-2017, 10:23 AM
twistedpixel
    Thread: Any way to force sessions to *not* update on certain AJAX requests?
Post: RE: Any way to force sessions to *not* update on c...

Sadly I think you're right. I was hoping for a less arduous solution but I guess extending the Session Library is the only option. Cheers anyway!
7,780 Views
6 Replies
01-03-2017, 06:10 AM
twistedpixel
    Thread: Any way to force sessions to *not* update on certain AJAX requests?
Post: RE: Any way to force sessions to *not* update on c...

Thanks InsiteFX, but I don't think that's quite the problem. Unless I'm misunderstanding? It's not that AJAX requests are blocking/interfering, it's that I'd like to skip the auto-update of sessions o...
7,780 Views
6 Replies
01-02-2017, 01:07 PM
twistedpixel
    Thread: Any way to force sessions to *not* update on certain AJAX requests?
Post: Any way to force sessions to *not* update on certa...

Hi all, I'm a fairly experienced CI dev but I'm having trouble finding a good solution for this. Essentially, I'm trying to implement "idle logout" (session expiration) detection. I'd like to be...
7,780 Views
6 Replies
01-02-2017, 07:58 AM
twistedpixel

Theme © iAndrew 2016 - Forum software by © MyBB