Welcome Guest, Not a member yet? Register   Sign In
Search Results
  Exclamation Thread: Session save handler can't see object reference
Post: RE: Session save handler can't see object referenc...

Hi again. I believe I've been able to trace the issue down. In fact, I have another post here and I never realized they were connected: https://forum.codeigniter.com/showthread.php?tid=77381 (https://...
1,618 Views
3 Replies
05-03-2022, 05:26 AM
Jan Zelenka
    Thread: Session save handler can't see object reference
Post: RE: Session save handler can't see object referenc...

Hi all, I still can't put my finger on this but I might have some leads. It seems to be related to Filters that start the session and then return redirect. Can anyone think of a scenario where a fil...
1,618 Views
3 Replies
02-18-2022, 02:39 AM
Jan Zelenka
    Thread: Time objects can break session
Post: RE: Time objects can break session

Error Invalid serialization data for DateTime object SYSTEMPATH/Session/Session.php at line 1005 Code: -- 998         if (ENVIRONMENT === 'testing') 999         { 1000             $_SESSION ...
1,765 Views
4 Replies
02-11-2022, 09:18 AM
Jan Zelenka
    Thread: Time objects can break session
Post: Time objects can break session

Hi, I can't guarantee this is always the case but certainly happens most of the time. When I save an Entity object to the SESSION and at least one of the attributes is a Time object, the next session...
1,765 Views
4 Replies
02-11-2022, 01:03 AM
Jan Zelenka
    Thread: Session save handler can't see object reference
Post: RE: Session save handler can't see object referenc...

I was wrong. It's not only the $_SESSION[ 'user' ] member. It's the whole $_SESSION[] array that somehow gets reverted to at this moment unknown previous status when in FileHandler::write()
1,618 Views
3 Replies
02-10-2022, 08:17 AM
Jan Zelenka
    Thread: Session save handler can't see object reference
Post: Session save handler can't see object reference

Hi! I have a very weird issue. I fear it's a PHP itself that fails here but I ran against in in CodeIgniter so someone might have more info on that. I'm using the File session driver. I do the follo...
1,618 Views
3 Replies
02-10-2022, 05:12 AM
Jan Zelenka
    Thread: Session data lost on redirect
Post: RE: Session data lost on redirect

Thanks for your reply. It did help in the sense that I took a deeper look at things and realized that when using HTTPS, the $_COOKIES array is nicely populated and contains the session cookie while wi...
2,969 Views
4 Replies
08-27-2020, 05:35 AM
Jan Zelenka
    Thread: Openpay LIBRARY
Post: RE: Openpay LIBRARY

Hi, while I can't guarantee this will solve your problem, in both cases above (with my limited knowledge of the subject) I can see no mention of configuring the autoload. So CI doesn't probably know w...
5,078 Views
8 Replies
08-26-2020, 04:44 AM
Jan Zelenka
    Thread: Session data lost on redirect
Post: Session data lost on redirect

Hi, I'm struggling to to properly redirect from a filter. I'm trying to store some data in the SESSION before returning from the filter with the idea to use the data in the page redirected to. Eve...
2,969 Views
4 Replies
08-24-2020, 07:27 AM
Jan Zelenka
    Thread: Routing - ignore first segment
Post: RE: Routing - ignore first segment

laynebay, you are right, I have studied the documentation before turning here and it never mentions the ability to substitute the Controller with a placeholder. But purely technically speaking, it is ...
5,949 Views
10 Replies
07-17-2020, 01:46 AM
Jan Zelenka
    Thread: Routing - ignore first segment
Post: RE: Routing - ignore first segment

Unfortunately, both give: Controller or its method is not found: $2::method
5,949 Views
10 Replies
07-16-2020, 07:26 AM
Jan Zelenka
    Thread: Routing - ignore first segment
Post: RE: Routing - ignore first segment

That was a great tip and we're definitely heading somewhere. I did exactly as suggested but it seems the Controller is not parsed properly. Here is my URL and the error message: URL: https://site.loc...
5,949 Views
10 Replies
07-16-2020, 06:44 AM
Jan Zelenka
    Thread: Routing - ignore first segment
Post: RE: Routing - ignore first segment

Thanks for the replies and sorry for not being more clear on what I want to achieve. laynebay Wrote: (07-15-2020, 05:20 AM) -- Code: -- $routes->get('/foobar/home/index', 'Home::index'); -- -- ...
5,949 Views
10 Replies
07-16-2020, 12:53 AM
Jan Zelenka
    Thread: API requests with a trailing forward slash
Post: RE: API requests with a trailing forward slash

I have encountered this as well. I don't remember exactly but I think from debugging the issue I came to the conclusion it was intentional. Unfortunately I don't have time to search for it now but I b...
2,574 Views
4 Replies
07-15-2020, 07:16 AM
Jan Zelenka
    Thread: Routing - ignore first segment
Post: Routing - ignore first segment

Hi all! I'm cracking my head over this but can't figure it out. I'm trying have the controller being specified in the second segment of the url. So for instance http://site.eu/code/object/method... ...
5,949 Views
10 Replies
07-15-2020, 03:52 AM
Jan Zelenka
    Thread: session_start() error
Post: RE: session_start() error

This might be perceived as a dig, sorry for that but I ran into exactly the same issue. This time with PHP 7.2.1. I've read on some dev site there was a PHP bug causing this around version 5.3 or ...
5,273 Views
6 Replies
07-08-2020, 07:44 AM
Jan Zelenka
    Thread: Allow Entities to receive save updates
Post: RE: Allow Entities to receive save updates

I might have an improvement on the original request. While working on my project, I realized this all can be addressed in a much simpler way. Please, change the Model::save($data) method's signatur...
2,081 Views
1 Replies
06-11-2020, 05:23 AM
Jan Zelenka
    Thread: curl - specifying a certificate
Post: curl - specifying a certificate

Hi I'm trying to extend the CURLRequest class to automatically download a client certificate in case a new one is available and I'm having trouble understanding the code of the setCURLOptions method....
1,348 Views
1 Replies
06-05-2020, 07:10 AM
Jan Zelenka
    Thread: curl error 'client gone'
Post: RE: curl error 'client gone'

Finally, I was able to determine where it's coming from. It's the CodeIgniter\HTTP\Message::populateHeaders method It takes all the elements of the $_SERVER array who's key starts with HTTP_ and make...
2,157 Views
2 Replies
06-04-2020, 11:59 AM
Jan Zelenka
    Thread: curl error 'client gone'
Post: RE: curl error 'client gone'

I have booked some progress: it turns out something along the way attaches the header Content-Length with value 96 to the request and that causes the issue. Quite weird, especially since the method i...
2,157 Views
2 Replies
06-03-2020, 01:38 AM
Jan Zelenka

Theme © iAndrew 2016 - Forum software by © MyBB