home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / xampp / xampp-perl-addon-1.4.9-installer.exe / BluePrint.pm < prev    next >
Encoding:
Perl POD Document  |  2002-11-27  |  2.2 KB  |  125 lines

  1. package CGI::Session::BluePrint;
  2.  
  3. # $Id: BluePrint.pm,v 3.1 2002/11/27 12:26:03 sherzodr Exp $
  4.  
  5. use strict;
  6. use base qw(
  7.     CGI::Session
  8.     CGI::Session::ID::MD5
  9.     CGI::Session::Serialize::Default
  10. );
  11.  
  12.  
  13. # Load neccessary libraries below
  14.  
  15. use vars qw($VERSION);
  16.  
  17. $VERSION = '0.1';
  18.  
  19. sub store {
  20.     my ($self, $sid, $options, $data) = @_;
  21.  
  22.     my $storable_data = $self->freeze($data);
  23.  
  24.     #now you need to store the $storable_data into the disk
  25.  
  26. }
  27.  
  28.  
  29. sub retrieve {
  30.     my ($self, $sid, $options) = @_;
  31.  
  32.     # you will need to retrieve the stored data, and 
  33.     # deserialize it using $self->thaw() method
  34. }
  35.  
  36.  
  37.  
  38. sub remove {
  39.     my ($self, $sid, $options) = @_;
  40.  
  41.     # you simply need to remove the data associated 
  42.     # with the id
  43.     
  44.     
  45. }
  46.  
  47.  
  48.  
  49. sub teardown {
  50.     my ($self, $sid, $options) = @_;
  51.  
  52.     # this is called just before session object is destroyed
  53. }
  54.  
  55.  
  56.  
  57.  
  58. # $Id: BluePrint.pm,v 3.1 2002/11/27 12:26:03 sherzodr Exp $
  59.  
  60. 1;       
  61.  
  62. =pod
  63.  
  64. =head1 NAME
  65.  
  66. CGI::Session::BluePrint - Default CGI::Session driver BluePrint
  67.  
  68. =head1 SYNOPSIS
  69.     
  70.     use CGI::Session::BluePrint
  71.     $session = new CGI::Session("driver:BluePrint", undef, {...});
  72.  
  73. For more examples, consult L<CGI::Session> manual
  74.  
  75. =head1 DESCRIPTION
  76.  
  77. CGI::Session::BluePrint is a CGI::Session driver.
  78. To write your own drivers for B<CGI::Session> refere L<CGI::Session> manual.
  79.  
  80. =head1 COPYRIGHT
  81.  
  82. Copyright (C) 2002 Your Name. All rights reserved.
  83.  
  84. This library is free software and can be modified and distributed under the same
  85. terms as Perl itself. 
  86.  
  87. =head1 AUTHOR
  88.  
  89. Your name
  90.  
  91. =head1 SEE ALSO
  92.  
  93. =over 4
  94.  
  95. =item *
  96.  
  97. L<CGI::Session|CGI::Session> - CGI::Session manual
  98.  
  99. =item *
  100.  
  101. L<CGI::Session::Tutorial|CGI::Session::Tutorial> - extended CGI::Session manual
  102.  
  103. =item *
  104.  
  105. L<CGI::Session::CookBook|CGI::Session::CookBook> - practical solutions for real life problems
  106.  
  107. =item *
  108.  
  109. B<RFC 2965> - "HTTP State Management Mechanism" found at ftp://ftp.isi.edu/in-notes/rfc2965.txt
  110.  
  111. =item *
  112.  
  113. L<CGI|CGI> - standard CGI library
  114.  
  115. =item *
  116.  
  117. L<Apache::Session|Apache::Session> - another fine alternative to CGI::Session
  118.  
  119. =back
  120.  
  121. =cut
  122.  
  123.  
  124. # $Id: BluePrint.pm,v 3.1 2002/11/27 12:26:03 sherzodr Exp $
  125.