GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Apache::Session::SharedMem(3) User Contributed Perl Documentation Apache::Session::SharedMem(3)

Apache::Session::SharedMem - Session management via shared memory

 use Apache::Session::SharedMem;

 tie %s, 'Apache::Session::SharedMem', $sessionid, { expires_in => 86400 }

This module is an implementation of Apache::Session. It uses IPC::Cache to store session variables in shared memory.

The advantage of this is that it is fairly fast (about the same speed, if not faster than Apache::Session::File and is very easy to set up making it perfect for when you want to test sessions but can't be bothered to set up a database or don't want cgi scripts writing temp files.

It probably isn't very scaleable (i.e you probably shouldn't use this in production code which is going to get hit hard.

I have no idea if it leaks memory yet. I've only just written it :)

Apparently it IPC::ShareLite (and hence IPC::Cache) don't work under Perl 5.6.

Just the same as all the other Apache::Session modules. You can optionally pass the parameter expires_in which will tell the Session to expire in a certain time.

Apache::Session::SharedMem needs Apache::Session and IPC:Cache, both available from the CPAN.

Simon Wistow <simon@twoshortplanks.com>

This software is copyright(c) 2000, 2001, 2002 Simon Wistow. It is free software and can be used under the same terms as perl, i.e. either the GNU Public Licence or the Artistic License.

Apache::Session, IPC::Cache
2004-09-22 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.