Main > Programming > Libraries >

CGI::kSession 0.5.3

CGI::kSession 0.5.3

Sponsored Links

CGI::kSession 0.5.3 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.004 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 837
Date added: 2007-07-17
Publisher: Marcin Krzyzanowski

CGI::kSession 0.5.3 description

CGI::kSession is a sessions manager for CGI.
This module can be used anywhere you need sessions. As a session management module, it uses files with a configurable lifetime to handle your session data. For those of you familiar with PHP, you will notice that the session syntax is a little bit similar.
METHODS
The following public methods are availible:
$s = new CGI::kSession();
The constructor, this starts the ball rolling. It can take the following hash-style parameters:
lifetime - how long the session lasts, in seconds
path - the directory where you want to store your session files
id - if you want to give the session a non-random name, use this parameter as well
$s->start();
This creates a session or resumes an old one (could be used in conjunction with something like HTTP::Cookie). This will return 1 if this is a new session, and 0 if its resuming an old one. If you defined no values in the new() call, then the session will start with a default lifetime of 600 seconds, a path of /var/tmp, and a random string for an id.
$s->save_path();
Save the session path or, without an argument, return the current session path. Used with an argument, this performs the same thing as the path parameter in the constructor.
$s->id();
If the session id exists, this will return the current session id - useful if you want to maintain state with a cookie! If you pass a parameter, it acts the same as new( id => some_session_name), i.e., it creates a session with that id.
$s->register();
This takes a string as an arguement and basically tells the session object this: "Hey, this is a variable Im thinking about associating with some data down the road. Hang onto it for me, and Ill let you know what Im going to do with it". Once you register a variable name here, you can use it in set() and get().
$s->is_registered();
Check to see if the function is registered. Returns 1 for true, 0 for false.
$s->unregister();
Tell the session jinn that you no longer want to use this variable, and it can go back in the bottle (the variable, not the jinn... you still want the jinn around until you call destroy()).
$s->set();
This is where you actually define your variables (once you have "reserved" them using register()). This method takes two arguments: the first is the name of the variable that you registerd, and the second is the info you want to store in the variable.
$s->get();
This method allows you to access the data that you have saved in a session - just pass it the name of the variable that you set().
$s->unset();
Calling this method will wipe all the variables stored in your session.
$s->destroy();
This method deletes the session file, destroys all the evidence, and skips bail.
Enhancements:
- updated the documentation

CGI::kSession 0.5.3 Screenshot

Advertisements

CGI::kSession 0.5.3 Keywords

Bookmark CGI::kSession 0.5.3

Hyperlink code:
Link for forum:

CGI::kSession 0.5.3 Copyright

WareSeeker periodically updates pricing and software information of CGI::kSession 0.5.3 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of CGI::kSession 0.5.3 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
CGI::EasyCGI is a lightweight Perl module for handling the most common CGI functions. Free Download
VNC Session Manager provides a disconnected session manager for VNC. Free Download
CGI:IRC is a Perl/CGI program that allows you to use IRC from a Web browser. Free Download
PHP::Session is a Perl module to read / write PHP session files. Free Download
App::Session can represents a sequence of multiple events perhaps executed in separate processes. Free Download
CGI::MxScreen is a multi-screen stateful CGI framework. Free Download
POE::Session is a Perl module for event driven abstract state machine. Free Download
egantt is an enterprise graph / chart drawing component. now supporting basic charting types most specifically the gantt chart. Free Download