Session problem |
hi , i have a problem with session .
I store session in db as documentation , i dont know why the record in db after few second are deleted and the filter redirect me to login (correctly). In my base controller i have : Code: /** Code: public function before(RequestInterface $request, $params = null) The problem is born when i change CI_ENVIRONMENT from development to production ...
(08-28-2023, 06:30 PM)kenjis Wrote:(08-28-2023, 07:34 AM)pippuccio76 Wrote: I store session in db as documentation , i dont know why the record in db after few second are deleted The problem is that doing the same operation sometimes it logout and sometime not , in this operation by confirm with message i use flash data : Code: public function attivaRecord($id){ What could it be ?
I change from DatabaseHandler to FileHandler it seem it work fine , Why?
which is the process to delete db record or file for session ?
FileHandler is default mechanism. probably it is being tested more.
If you are interested in finding an error, try placing the debug information d() between calls and logging the log_message() message with SQL queries, other vars.
Same problem now with Filehandler , how can i debug the reason why session are destroyed ? Maybe server problem ?
May be. I have never received such an error. Sessions worked through the database and files
It seems that the problem happens when we use safari on an ipad, instead with chrome (on android) it doesn't happen. What can I do ?
Add URL demo here. We testing from another browser.
I can assume that you have a strict policy in the browser. and it deletes session cookies
(08-30-2023, 01:56 AM)ozornick Wrote: Add URL demo here. We testing from another browser.it is a webapp that work only on intranet . It is a wms webapp for my company . If i have net problem connection and disconnection can cause the problem ? |
Welcome Guest, Not a member yet? Register Sign In |