定制 asdfdotdev/session 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

asdfdotdev/session

Composer 安装命令:

composer require asdfdotdev/session

包简介

The asdf_ session class endeavors to make it easier to use basic best practices in PHP sessions.

README 文档

README

PHPUnit Tests (8.x) PHPUnit Tests (7.x) codecov Packagist

This class endeavors to make it easy to use better sessions in PHP scripts.

  • Easily set, increment, append, hash, and drop session values
  • Custom session naming
  • Simple session fingerprint check
  • Regenerate session id at random intervals
  • Change session id length & bits per character*
  • HTTPOnly session cookie
  • Decoy PHPSESSID cookie
  • Force session strict mode*
  • Force session use only cookies*
  • Force HTTPS only session cookies*
  • Supports PHP 7.2+

* Requires ini_set() method be enabled.

Compatibility

PHP Compatibility

Session class is developed for and tested with recent PHP Version:

  • PHP 7.2, 7.3, 7.4, 8.0, 8.1

Installation

composer require asdfdotdev/session

Use

A number of usage examples are included in _examples/. Check out the examples README for further details.

Tests

Information regarding the included tests is available in the tests the README.

Build history can be browsed at GitHub.

Standards

This class follows PSR-12 code standards.

Debugging

By default basic checks are performed when creating a session:

  • Session Lifespan: Prevents min lifespan from being greater than max lifespan.
  • System Timezone: Confirms default timezone is configured for PHP, if not UTC is set.

Additional optional debugging can be enabled in session settings:

  • PHP Version: Confirms the version available is 7.2.0 or newer
  • Session Directory: Confirms write access to PHP session directory
  • Session Domain: Confirms session domain setting matches the request domain

Contributing

Feedback, bug reports, feature requests, and pull requests are welcome!

If you'd like to contribute please reference our code of conduct and contributing guides.

统计信息

  • 总下载量: 656
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 3
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-2.1-only
  • 更新时间: 2019-08-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固