Giter Club home page Giter Club logo

codeigniter-my-session's Introduction

查看简体中文版README

Intro

Another CodeIgniter session library that utilizes the Native PHP session mechanism instead of the original CI cookie-based OR DB-based way. It takes Memcached as the session datastore, which will boost the performance of your app. Also, it supports all the original features, such as flash session.

Author

Requirement

HOW TO USE?

  1. Drop libraries/MY_Session.php into your application/libraries folder
  2. Drop system/libraries/Cache folder into your system/libraries folder, overwrite the existing files if needed when prompted.
  3. Load the Session library manually OR you can autoload it in config/autoload.php file.
  4. Use it like you are using the original CI Session library.
  5. That's all, enjoy!

License

The MIT license

codeigniter-my-session's People

Contributors

cnsaturn 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  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  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

codeigniter-my-session's Issues

Integration Issues

I am using Ion-Auth and trying to install this library. Any particular thing that I should keep in mind? Because its not working...

When I login - the session does not set.

不生效

用了此类库, session不写入文件,sess_destroy()也不起作用。

在论坛看到在my_session注销了 // new Cache_Session_Handler; 才生效啊。 我是菜鸟啊,不知道// new Cache_Session_Handler; 这句是干嘛的。注销了会有其他影响吗。

运行项目后,httpd崩溃了

错误应用程序名称: httpd.exe,版本: 2.2.14.0,时间戳: 0x4aeb9704
错误模块名称: php5ts.dll,版本: 5.3.1.0,时间戳: 0x4b06c41d
异常代码: 0xc0000005
错误偏移量: 0x0007e627
错误进程 ID: 0x1cdc
错误应用程序启动时间: 0x01cfabd67e2d5d61
错误应用程序路径: G:\xampp\apache\bin\httpd.exe
错误模块路径: G:\xampp\php\php5ts.dll
报告 ID: c7a62924-17c9-11e4-a85b-00251155394a

如何让Memcached作为Session文件的存储容器?

如果服务器支持memcached,那么本类也可以使用Memcached作为Session文件的存储容器。
我的服务器支持memcached,请问是不是会自动将Memcached作为Session文件的存储容器,如果不是自动,请问我应该如何让Memcached作为Session文件的存储容器?

=============================
QQ3869096

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.