Giter VIP home page Giter VIP logo

codeigniter-session-driver's People

Contributors

danmontgomery avatar trejgun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

codeigniter-session-driver's Issues

headers already sent

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);

Using with APC

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"

  • If I use APC on it's own and not this driver, no issues.
  • If I use APC and session driver Native in the config, no issues.
  • Issues arise only when I use APC and session driver Cache in the config.

Would be good if you can duplicate and fix. :)

Oh using the latest CI as well.

serialize works incorrect

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.