projects
/
catagits/Web-Session.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
use TMPDIR env if it's defined in Store::File
[catagits/Web-Session.git]
/
lib
/
Plack
/
Session
/
Store
/
File.pm
diff --git
a/lib/Plack/Session/Store/File.pm
b/lib/Plack/Session/Store/File.pm
index
63b569e
..
8da664c
100644
(file)
--- a/
lib/Plack/Session/Store/File.pm
+++ b/
lib/Plack/Session/Store/File.pm
@@
-15,7
+15,7
@@
use Plack::Util::Accessor qw[
sub new {
my ($class, %params) = @_;
- $params{'dir'} ||= '/tmp';
+ $params{'dir'} ||= $ENV{TMPDIR} || '/tmp';
die "Storage directory (" . $params{'dir'} . ") is not writeable"
unless -w $params{'dir'};