danmontgomery / codeigniter-session-driver Goto Github PK
View Code? Open in Web Editor NEWSession Replacement for CodeIgniter 2.x
Session Replacement for CodeIgniter 2.x
Using:
linux,
php 5.3.8
mysql 5.5.16
Codeigniter 2.1.0
$config['sess_driver'] = 'database';
$config['sess_cache_driver'] = '';
public function test()
{
$this->session->set_userdata('name', 'TEST');
echo $this->session->userdata('name');
}
Output:
TEST
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /srv/web/test/application/controllers/front.php:54)
Filename: session/Session_database.php
Line Number: 366
I also repaired this: system/core/Exception.php
//include(APPPATH.'errors/error_php.php');
include($_SERVER['DOCUMENT_ROOT']. '/' . APPPATH.'errors/error_php'.EXT);
Keep on getting this error when using with APC.
2011/12/20 18:33:04 [error] 1198#0: *655 FastCGI sent in stderr: "PHP Warning: include(application/errors/error_php.php): failed to open stream: No such file or directory in /srv/www/www.cidev.com/public_html/system/core/Exceptions.php on line 182
PHP Warning: include(): Failed opening 'application/errors/error_php.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /srv/www/www.cidev.com/public_html/system/core/Exceptions.php on line 182" while reading upstream, client: 192.168.1.7, server: www.cidev.com, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.cidev.com"
Would be good if you can duplicate and fix. :)
Oh using the latest CI as well.
If you try to store class with namespace you will have FALSE
it happens because of strip_slashes in Session::_unserialize and dont trigger error because of @
to fix it just remove strip_slashes
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.