Wigbi Demos v. 0.99.2   
Documentation: PHP | JS

SessionHandler

This class can be used to save and retrieve session data, which is client-specific data that is stored at the server.

The class makes it possible to handle session data with both PHP and JavaScript, using AJAX. All serializible data can be handled.

Save and retrieve session data

//PHP
SessionHandler::set("foo", "bar");
SessionHandler::get("foo");

//JavaScript
SessionHandler.set("foo", "bar", function() { ... });
SessionHandler.get("foo", function(result) { ... });

Try it out

First, save a string to session with either PHP or JavaScript:

Second, retrieve the string with either PHP or JavaScript:



  
 

Rate this class :    

   



  
 

Discuss this class (No comments):


    v. 0.99.2

    v. 0.99.2