![]() |
Session trouble - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17) +--- Thread: Session trouble (/showthread.php?tid=91417) |
Session trouble - msheath - 08-06-2024 I am on Windows 11 with a CI3 website. The online site is throwing an error like this: Message: session_start(): Failed to read session data: user (path: /var/cpanel/php/sessions/ea-php83) This is because I was trying to clear out redundant session files and I inadvertently (some would say stupidly!) deleted the ea-php83 file with all the others. I've had a look at the php.ini file and the session path, sure enough, is this. The question is, how do I fix it? Will it go away after some time when new session files are created or do I have to do something? So far it is still throwing the error after a day. I have been in touch with the service providers who tell me this can only be fixed by my code although I don't know how. The site is, unsurprisigly, perfectly OK on my local server. Grateful for advice. RE: Session trouble - InsiteFX - 08-06-2024 Most hosting providers backup your website, check to see if yours backed it up for you then ask them to restore i for you. RE: Session trouble - msheath - 08-06-2024 (08-06-2024, 10:36 PM)InsiteFX Wrote: Most hosting providers backup your website, check to see if yours backed it up for you Sadly I have to pay extra for backup and I have not done so. |