Jump to content


mrj

Member Since 11 Jul 2017
Offline Last Active Oct 14 2020 02:46 AM
-----

Posts I've Made

In Topic: [Solved] can not read session save path in php

12 October 2020 - 05:54 PM

Okay I figured out the problem. ini_set function need to be called at the top of php file. inside a function doesn't work.


In Topic: [Solved] can not read session save path in php

12 October 2020 - 04:19 PM

here is my output

/var/cpanel/php/sessions/ea-php73
/var/cpanel/php/sessions/ea-php73

In Topic: [Solved] can not read session save path in php

12 October 2020 - 03:25 PM

Well, you can set the session path to whatever you want with

ini_set('session.save_path', $path);

tried, but still shows the session path as /var/cpanel/php/sessions/ea-php73


In Topic: [Solved] can not read session save path in php

12 October 2020 - 03:20 PM

666 is better unless you need to execute the file for some reason. 6 = read/write, 7 = read/write/execute. Directories generally need execute permissions, but unless the file is cgi or a command line script it doesn't need execute. Try changing the directory that the files are in to 777 though.

Still not working


In Topic: [Solved] can not read session save path in php

12 October 2020 - 03:11 PM

I read somewhere in the internet that shared hosting sessions are saved to the same path for everyone. Maybe is that why particular user can't read session dir? Just an Idea.