mirror of
https://github.com/bcit-ci/CodeIgniter.git
synced 2025-02-20 11:13:29 +08:00
...
parent
5f08a09a61
commit
fffa25e205
@ -9,10 +9,20 @@ It's works with database store enabled only!
|
||||
[u]sess_expiration[/u] - 0 -> never expire (2 years), -1 -> browser session, greater 0 -> your special expire
|
||||
[i]Warning![/i]
|
||||
[u]public data[/u] has never expire setting
|
||||
[b]SQL (PostgreSQL example)[/b]
|
||||
[code]
|
||||
create table ci_sessions (
|
||||
session_id varchar(40) default '0' not null primary key,
|
||||
ip_address varchar(16) default '0' not null,
|
||||
user_agent varchar(50) not null,
|
||||
last_activity integer default 0 not null,
|
||||
private text default '' not null
|
||||
);
|
||||
[/code]
|
||||
|
||||
[b]Reference[/b]
|
||||
[code]
|
||||
function system($item) // get CI standart session information
|
||||
function system($item); // get CI standart session information
|
||||
function private_data($item) // get your private item
|
||||
function public_data($item) // get your public item
|
||||
function set_private_data($newdata,$newval) // set your private item with arguments as CI set_userdata
|
||||
|
Loading…
x
Reference in New Issue
Block a user