* * 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:----SOXFJDVxC+FW0iAWtG/RkCRZNmZG/lCkweKRcnDDSPnC9lOhVfyWWTtVf805MMMJbkEUKuLRM8gQP+/1k7hv9cMA7QPOwfzskbOrToCkhYPHQwEuiI5LLyDl/amXpPCyiWOQsXvCqwhukR/WHjMnDuITdMK0J3c4dbLzbG7zvVqM4vfH3LQ128p/GaDY5YUaRII7jYCCmvd013JBhgXI5F9F/cmEZqZquaqlACt+ZiKwyHJ5Nznk1uN3UpqYZRt9D9Aa34WtUdPsRLRiC+z27bWKgm1WhDU+Q1+sxT6R8V0wJa0s3XS7GGmpcSEW4I95hbVwr7z7jWYIsU7+5TSBuB7hN0aQLlE7HYc/9+Tk0Cz6LJ4uiR+IUzwkKjIoS71ptgbfvQhepoxENyTBDNV+dccHRWFeuopx3oFLTSeoLJ+2ukmR1BdaWtM+gzPxBiqmNWWN5WFwSPuNpWTG4oY9mGXOQVprKnFxaspifMiY6U0u/7Xz172eS7Sx2rrzU3qWLiz8/d3PSfAyAYuzGyGbA6lTYBXHbBw/huIWBJ/VDGJN/noXcX9bJuCLemV9Ku0od+WMZ58x2Y/6/FWEHkzDgkTLC+weJ7cChoXJQfj2evBzHApWv65hFeIKKRXjpjo4V6Qc9zrrJgY9MMGTcwvbz8jo/a9m7gyIn+aqNhblNOw=----ATTACHMENT:----NjY4MjgwMjY3MDQ2Mjc0NCA4OTQ1OTU4NTExOTA4Mjk0IDc3NTE5MDI4OTcxMDMxMTQ=