Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 66 lines (50 sloc) 1.215 kB
84eca36 @racke DOCUMENTATION FOR:
racke authored
1 __NAME__ purpose
2 specify the number of characters to hash session directories
3 __END__
4
5
6 __NAME__ synopsis
7 <arg choice='plain'><replaceable>integer</replaceable></arg>
8 __END__
9
10
11 __NAME__ see also
12 SessionHashLevels
13 __END__
14
15
16 __NAME__ description
17 This directive combiles with SessionHashLevels to configure the number of levels and hash length for
18 the directory structure of file-based sessions.
19
20 Default is 1.
21
22 This solves the problem of session IDs passed from CGI::Session or other
23 modules that use a quasi-sequential session ID. You end up placing all
24 sessions in the S/2 directory for a long time, followed by the S/3 directory,
25 etc. A setting of:
26
27 SessionHashLength 4
28 SessionHashLevels 1
29
30 would break sessions up into separate directories instead of putting all
31 sessions in a huge directory.
32 __END__
33
34 __NAME__ notes
35 The default value of 1, combined with SessionHashLevels of 2, creates a
36 directory structure like:
37
38 <programlisting>
39 4
40 +----w
41 6
42 +----r
43 D
44 +----9
45 +----R
46 r
47 +----z
48 s
49 +----s
50 X
51 +----s
52 z
53 +----3
54 </programlisting>
55
56 __END__
57
58 __NAME__ example: Setting SessionExpire
59 Put the following in &ccf;:
60 <programlisting>
61 SessionHashLength 4
62 SessionHashLevels 1
63 </programlisting>
64 __END__
65
Something went wrong with that request. Please try again.