Does ini_set('session.save_path', 'custom path'); effect the session garbage cleaner?

Posted by newbtophp on Stack Overflow See other posts from Stack Overflow or by newbtophp
Published on 2010-12-26T17:28:05Z Indexed on 2010/12/26 17:53 UTC
Read the original article Hit count: 147

Filed under:
|

Hi!

Does ini_set('session.save_path', 'custom path'); effect the session garbage cleaner?

As I'm setting a custom directory for the sessions, because I've read from various php security guides, that setting a custom directory on shared hosting for sessions; can improve session security.

But the problem is I've read somewhere that PHP does/handles the session garbage cleaning only when the session_save_path is the default and not modified (ie. using a custom directory)? - is this true, if so is their a solution for this?.

(take into consideration I'm using shared hosting).

Appreciate all help!

© Stack Overflow or respective owner

Related posts about php

Related posts about session