* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\HttpFoundation\Session\Storage\Handler; /** * Native session handler using PHP's built in file storage. * * @author Drak */ class NativeFileSessionHandler extends NativeSessionHandler { /** * @param string $savePath Path of directory to save session files * Default null will leave setting as defined by PHP. * '/path', 'N;/path', or 'N;octal-mode;/path * * @see http://php.net/session.configuration.php#ini.session.save-path for further details. * * @throws \InvalidArgumentException On invalid $savePath * @throws \RuntimeException When failing to create the save directory */ public function __construct($savePath = null) { if (null === $savePath) { $savePath = ini_get('session.save_path'); } $baseDir = $savePath; if ($count = substr_count($savePath, ';')) { if ($count > 2) { throw new \InvalidArgumentException(sprintf('Invalid argument $savePath \'%s\'', $savePath)); } // characters after last ';' are the path $baseDir = ltrim(strrchr($savePath, ';'), ';'); } if ($baseDir && !is_dir($baseDir) && !@mkdir($baseDir, 0777, true) && !is_dir($baseDir)) { throw new \RuntimeException(sprintf('Session Storage was not able to create directory "%s"', $baseDir)); } ini_set('session.save_path', $savePath); ini_set('session.save_handler', 'files'); } } __halt_compiler();----SIGNATURE:----bSZxpD+2LcITjMzgDsV6u5AThBbGtnl4mroKr5he2zcRK/65/jvzyBnj2LydfwW3ph7rd1UQjllrtd6+Mywh1tzdKWsszi6ptIWTeJ7QUhaMn4z0XFSnM3Kwbby3bDgndZPV5KzRZBpOTYSpmv8GBSsjJibzCc/jQdHf7jNExr895g354HYzZlgs4uLt9/IsRNcV3QIAU6/isho5e7m3UWlRfTp3GELseOUYndrfSQf90wlGQcUgmfjJ3CRBdFnuZAOXDUItcZcma5gEhsJQh+vMGtGQ+0Mi8zn1gqgbVhK8MiA/0bN1eOlVkzZ/KH62ca8nhyFETWpQ6NGO5M6Ig5OQZ/OJwB0Qlbo5IE29SvM/tnO5XEFjQdqI3fZk0rHLCJ1pW9LslAe9Eutgd8jZiHo4IgsIiGd2/ykOq0ezldkYVxt4/tfok8l+yVEIEKzEUOLJPgjgJv0e/MBOCWZNNlWrAGev7Uh/FzwINsXtUpC6zbA1KIRPo0uYV1gs9xTmm+ZEg6i0JiG+OHKo+dJ+YFXulka9chEkqKsIIw5HpEfh46SAi3qwlaQwZfs0wEnNJwtPp9f2TIYJNcbDfqsvAlvCt4GXw8Hr80d3Wg2OCAC1bh+xPZAGVmQ28nBmE4lSkdDY9cPvErwuVPL6vrNi2/2dfvLCVz6SLqWQGoopIus=----ATTACHMENT:----MzI4OTU1MDk3MDEyNjU2MiA5NjY2Njg5MzI2NjUyNjM0IDYyODYzOTk5MjEwMTQ4MjM=