New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0013844: config.inc.php session.save_path #6846

Open
Gloirin opened this Issue Jun 9, 2018 · 2 comments

Comments

Projects
None yet
1 participant
@Gloirin

Gloirin commented Jun 9, 2018

Reported by Notaufnahme on 29 Apr 2018 14:25

Version 16.09.4

Hallo zusammen,

ich habe in der config.inc.php session.save_path definiert, aber es hatte absolut keinen Effekt:

),
'session.save_path' => '/home/www/.../.tmp',
'logger' =>
array (
'active' => false,
'filename' => '',
'priority' => 0,
),

Hat jemand eine Idee?

@Gloirin Gloirin self-assigned this Jun 9, 2018

@Gloirin

This comment has been minimized.

Show comment
Hide comment
@Gloirin

Gloirin Jun 11, 2018

Comment posted by pschuele on 3 May 2018 13:44

the session save path should be configured like this:

'session' =>
array (
'backend' => 'File',
'path' => '/sessionpath'
),

Gloirin commented Jun 11, 2018

Comment posted by pschuele on 3 May 2018 13:44

the session save path should be configured like this:

'session' =>
array (
'backend' => 'File',
'path' => '/sessionpath'
),

@Gloirin

This comment has been minimized.

Show comment
Hide comment
@Gloirin

Gloirin Jun 11, 2018

Comment posted by Notaufnahme on 3 May 2018 14:09

I was probably misleading:

the "session" path is of course defined in config.inc.php:

session' =>
array (
lifetime' => 86400,
'backend' => 'File',
path' => '/home/www/.../sessions',
'host' => 'localhost',
port' => 6379,

But session.save_path is about the definition in php.ini e.g. session.save_path = /tmp

Now each web solution writes to this "globally" defined path. Even Zend. And that's where the problems start. In 4 days alone, Zend has stored over 100,000 files in the php.ini defined path. Therefore there should be a way in Tine to overwrite exactly this path for the domain. So far, however, all attempts have been unsuccessful.

For an entry e.g. in the index.php

<?php
ini_set('session.save_path',realpath(dirname($_SERVER['DOCUMENT_ROOT']) . '/../session'));
session_start();

Zend complains immediately and Tine doesn't even start.

Translated with www.DeepL.com/Translator

Gloirin commented Jun 11, 2018

Comment posted by Notaufnahme on 3 May 2018 14:09

I was probably misleading:

the "session" path is of course defined in config.inc.php:

session' =>
array (
lifetime' => 86400,
'backend' => 'File',
path' => '/home/www/.../sessions',
'host' => 'localhost',
port' => 6379,

But session.save_path is about the definition in php.ini e.g. session.save_path = /tmp

Now each web solution writes to this "globally" defined path. Even Zend. And that's where the problems start. In 4 days alone, Zend has stored over 100,000 files in the php.ini defined path. Therefore there should be a way in Tine to overwrite exactly this path for the domain. So far, however, all attempts have been unsuccessful.

For an entry e.g. in the index.php

<?php
ini_set('session.save_path',realpath(dirname($_SERVER['DOCUMENT_ROOT']) . '/../session'));
session_start();

Zend complains immediately and Tine doesn't even start.

Translated with www.DeepL.com/Translator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment