OSDN Git Service

改行コードをLFに統一。
[fswiki/fswiki.git] / lib / CGI / Session / Serialize / Storable.pm
1 package CGI::Session::Serialize::Storable;
2
3 # $Id: Storable.pm,v 1.1.1.1 2003/08/02 23:39:35 takezoe Exp $ 
4 use strict;
5 use Storable;
6 use vars qw($VERSION);
7
8 ($VERSION) = '$Revision: 1.1.1.1 $' =~ m/Revision:\s*(\S+)/;
9
10
11 sub freeze {
12     my ($self, $data) = @_;
13
14     return Storable::freeze($data);
15 }
16
17
18 sub thaw {
19     my ($self, $string) = @_;
20
21     return Storable::thaw($string);
22 }
23
24 # $Id: Storable.pm,v 1.1.1.1 2003/08/02 23:39:35 takezoe Exp $
25
26 1;
27
28 =pod
29
30 =head1 NAME
31
32 CGI::Session::Serialize::Storable - serializer for CGI::Session
33
34 =head1 DESCRIPTION
35
36 This library is used by CGI::Session driver to serialize session data before storing
37 it in disk. Uses Storable
38
39 =head1 METHODS
40
41 =over 4
42
43 =item freeze()
44
45 receives two arguments. First is the CGI::Session driver object, the second is the data to be
46 stored passed as a reference to a hash. Should return true to indicate success, undef otherwise, 
47 passing the error message with as much details as possible to $self->error()
48
49 =item thaw()
50
51 receives two arguments. First being CGI::Session driver object, the second is the string
52 to be deserialized. Should return deserialized data structure to indicate successs. undef otherwise,
53 passing the error message with as much details as possible to $self->error().
54
55 =back
56
57 =head1 COPYRIGHT
58
59 Copyright (C) 2002 Sherzod Ruzmetov. All rights reserved.
60
61 This library is free software. It can be distributed under the same terms as Perl itself. 
62
63 =head1 AUTHOR
64
65 Sherzod Ruzmetov <sherzodr@cpan.org>
66
67 All bug reports should be directed to Sherzod Ruzmetov <sherzodr@cpan.org>. 
68
69 =head1 SEE ALSO
70
71 =over 4
72
73 =item *
74
75 L<CGI::Session|CGI::Session> - CGI::Session manual
76
77 =item *
78
79 L<CGI::Session::Tutorial|CGI::Session::Tutorial> - extended CGI::Session manual
80
81 =item *
82
83 L<CGI::Session::CookBook|CGI::Session::CookBook> - practical solutions for real life problems
84
85 =item *
86
87 B<RFC 2965> - "HTTP State Management Mechanism" found at ftp://ftp.isi.edu/in-notes/rfc2965.txt
88
89 =item *
90
91 L<CGI|CGI> - standard CGI library
92
93 =item *
94
95 L<Apache::Session|Apache::Session> - another fine alternative to CGI::Session
96
97 =back
98
99 =cut
100
101 # $Id: Storable.pm,v 1.1.1.1 2003/08/02 23:39:35 takezoe Exp $