omni_session
Omnigres 会话管理器
omnigres · Omnigres 会话管理器
概览
| ID | 扩展 | 软件包 | 版本 | 类别 | 许可证 | 编程语言 |
|---|---|---|---|---|---|---|
| 2966 | omni_session | omnigres | 0.2.0 | FEAT | Apache-2.0 | C |
| 属性 | 可执行文件 | 动态库 | 需要预加载 | 需要建扩展 | 可迁移 | 可信 |
|---|---|---|---|---|---|---|
| ----d-- | 否 | 否 | 否 | 是 | 否 | 否 |
软件包
| 类型 | 仓库 | 版本 | 兼容的 PostgreSQL 大版本 | 包名模式 | 依赖 |
|---|---|---|---|---|---|
| EXT | PIGSTY | 0.2.0 | 19 18 17 16 15 | omnigres | omni_var, omni_id, omni_web, omni_httpd, omni_polyfill |
| RPM | PIGSTY | 20260212 | 19 18 17 16 15 | omnigres_$v | postgresql$v-contrib, postgresql$v-plpython3, python3-pip |
| DEB | PIGSTY | 20260212 | 19 18 17 16 15 | postgresql-$v-omnigres | postgresql-plpython3-$v, python3-pip |
| Linux / PG | PG19 | PG18 | PG17 | PG16 | PG15 |
|---|---|---|---|---|---|
| el8.x86_64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
| el8.aarch64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
| el9.x86_64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
| el9.aarch64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
| el10.x86_64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
| el10.aarch64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
| d12.x86_64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
| d12.aarch64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
| d13.x86_64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
| d13.aarch64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
| u22.x86_64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
| u22.aarch64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
| u24.x86_64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
| u24.aarch64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
| u26.x86_64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
| u26.aarch64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
源码
docs.omnigres.org/omni_session/session_management/
omnigres-20260212.tar.gz
wheel-0.45.1-py3-none-any.whl
安装
在数据库中创建扩展。
用法
omni_session 扩展提供标准化的会话管理,创建非日志表 omni_session.sessions 用于活跃会话。主要与 HTTP 栈配合使用。
HTTP 会话处理器
请求处理器 – 从 _session cookie 中提取会话 UUID:
如果 cookie 缺失或无效则创建新会话,设置 omni_session.session 事务变量。
响应处理器 – 在响应中设置会话 cookie:
Cookie 参数:
| 参数 | 默认值 | 描述 |
|---|---|---|
cookie_name | _session | Cookie 标识符 |
http_only | true | 阻止 JavaScript 访问 |
secure | true | 仅 HTTPS |
same_site | Lax | 跨站行为 |
domain | null | 域范围 |
max_age | null | 生存时间(秒) |
expires | null | 过期时间戳 |
path | null | URL 路径范围 |