Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: session()->stop() not destroying data
Post: RE: session()->stop() not destroying data

jreklund Wrote: (05-11-2020, 09:52 AM) -- Are you still logged in (or other session data intact) after you have executed the stop() function? You always get a new empty session when you have sessi...
14,213 Views
20 Replies
06-02-2020, 08:44 AM
beng
    Thread: Entity magic get by reference
Post: Entity magic get by reference

Hi there, I am trying to build a very loose lazy lead within my entities for pivots. for e.g (not a working example, just so you can get the logic): PHP Code: -- class Car extends Entity { prote...
963 Views
1 Replies
06-02-2020, 08:28 AM
beng
    Thread: session()->stop() not destroying data
Post: RE: session()->stop() not destroying data

Hi jreklund, Again, I know what can be done from a manual point of view I am talking about CI's functionality and more importantly the documentation... As per my last post the docs clearly say: ...
14,213 Views
20 Replies
05-11-2020, 03:27 AM
beng
    Thread: session()->stop() not destroying data
Post: RE: session()->stop() not destroying data

Hi InsiteFX, Thanks for your reply, to be clear I know I can do any number of "manual" things to remove the data like unset or overwrite etc but coming from ci3 I am trying to utilize all the funct...
14,213 Views
20 Replies
04-23-2020, 08:18 AM
beng
    Thread: session()->stop() not destroying data
Post: session()->stop() not destroying data

I may be doing something wrong but I am calling the above PHP Code: -- session()->stop(); -- using the database driver but the session still lives? Watching in the background, the session cookie ...
14,213 Views
20 Replies
04-22-2020, 03:51 PM
beng
    Thread: How to set encryption key in config
Post: RE: How to set encryption key in config

Am I missing something here? anybody help?
1,917 Views
1 Replies
04-17-2020, 04:18 AM
beng
    Thread: Time::now() in every controller
Post: RE: Time::now() in every controller

Hi Maxxd, Was thinking that but worried any time I use $this->time in controllers it would be using the same instance of the class - not good for date comparisons etc. Thinking about it I suppos...
2,323 Views
3 Replies
03-29-2020, 07:55 AM
beng
    Thread: How to set encryption key in config
Post: How to set encryption key in config

After reading the "Encryption Service" docs I cannot see a way to set the key as required e.g. using hex2bin(); In CI3 the config was just a variable in php file so I simply used: PHP Code: -- ...
1,917 Views
1 Replies
03-29-2020, 06:05 AM
beng
    Thread: Time::now() in every controller
Post: Time::now() in every controller

Hi there, I know there will be a really simple answer to this that I am missing. I want to use CI4's datetime class in pretty much every controller e.g.: PHP Code: -- echo Time::now() -- or ...
2,323 Views
3 Replies
03-28-2020, 09:05 AM
beng
    Thread: CI Session cookie expiry / cookie_lifetime
Post: RE: CI Session cookie expiry / cookie_lifetime

Hi InsiteFX. Sorry, but I dont understand your reply? "Cookies will not write if output has already been sent to the page." I dont get what you mean here, as like I said the cookie updates on mos...
8,180 Views
4 Replies
08-01-2016, 01:23 PM
beng
  Sad Thread: CI Session cookie expiry / cookie_lifetime
Post: CI Session cookie expiry / cookie_lifetime

I know, I know sessions again... :huh: I have been pulling my hair out over a session bug I have been having for ages but could not make it happen on demand and it seems random. However I think...
8,180 Views
4 Replies
08-01-2016, 03:15 AM
beng
    Thread: Force database transaction rollback
Post: Force database transaction rollback

Hi all, I am adding this here to see if I am missing something, and if not if it could be added to the todo list to make codeigniter better ;o) I am using transaction inside a try catch and in t...
4,234 Views
0 Replies
03-05-2015, 07:34 AM
beng

Theme © iAndrew 2016 - Forum software by © MyBB