Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
1.4k views
in Q2A Core by
On my shared hosting the php configuration seems to be misconfigured. The /tmp folder, where sessions are saved is full daily. So nobody can login on some of my sites. Support is on holiday I think, since 2 weeks they did not resolve that.

The /temp folder i cant access as it is one level "above" my webspace. Now I could save the sessions on my webspace and delete them through a cronjob.

Question is, where to set another session path and are there other things I have to change as well.

1 Answer

0 votes
by
 
Best answer
I'm not sure but maybe this helps you: .............. you could try to modify the path by the following command:........... session_save_path(realpath(dirname($_SERVER['DOCUMENT_ROOT']) . '/../session')); ...................Or you could try the ini_set(...) command................See http://php.net/manual/de/function.session-save-path.php for more details...............I'm not sure where to put this - most probably at the beginning of index.php ............Hopefully that works.
by
Strange thing: I've answered this  with my mobile phone and the answer field deleted all carriage returns...     so this is why I've added all these .......... to make it more readable.
Strange....

And even more: this comment field accepts my
Carriage
Returns.

Hmmm...
by
Great,

it worked by using:

ini_set ('session.save_path', '/your/relative/path/for/your/sessions');

directly after:

define('QA_BASE_DIR', dirname(empty($_SERVER['SCRIPT_FILENAME']) ? __FILE__ : $_SERVER['SCRIPT_FILENAME']).'/');

in index.php .

Will test around now !

Thank You snoopy, very helpful hint !

monk333

Welcome to the Q&A site for Question2Answer.

If you have a question about Q2A, please ask here, in English.

To report a bug, please create a new issue on Github or ask a question here with the bug tag.

If you just want to try Q2A, please use the demo site.

Categories

...