88,190 Installs and Counting! Get Sparks Now!
Hey! Keep up to date with the project through its beta and public launch by following @getsparks.
Tweet
A Quick Looks At Sparks (EllisLab Official Post)
March 11, 2012
from: codeigniter.com
The Top Sparks of 2011
December 31, 2011
from: codefury.net
CodeIgniter Starter Project − A Starting Point for Any CI Dev
December 12, 2011
from: github.com
NetTuts+ Tutorial for GetSparks
November 24, 2011
from: net.tutsplus.com
Replacement for the session library using drivers
| Contributor | : danmontgomery |
| : Log in to view | |
| Author Website | : http://www.dmontgomery.net |
| Spark Website | : https://github.com/danmontgomery/codeigniter-session-driver |
| Repository Type | : git |
| Number of Installs | : 464 |
php tools/spark install -v0.0.7 session-driver
Or download this version manually:
Get session-driver-0.0.7.zip
This is a replacement for CodeIgniter's session library which utilizes drivers. Currently, supported drivers are:
There are a couple of new config options in config/session.php, and the 'sessusedatabase' option is no longer used.
$this->load->spark('session-driver/X.X.X');
(Replace X.X.X with the appropriate version)
I suggest adding a call to sess_write() in the _output function of the controller, which will write the session before output and avoid issues with setting the cookie. If you don't do this, the library will try to write in __destruct(), which may or may not cause you issues.
class MY_Controller extends CI_Controller {
public function _output($output)
{
if(isset($this->session))
{
$this->session->sess_write();
}
echo $output;
}
}
php tools/spark install -v0.0.5 session-driver
Or download this version manually:
Get session-driver-0.0.5.zip