parent
447befcffd
commit
87122f4655
1 changed files with 12 additions and 1 deletions
@ -1 +1,12 @@ |
|||||||
# ushio-session |
# ushio-session |
||||||
|
|
||||||
|
|
||||||
|
## 定位 |
||||||
|
ushio-session是js-session的前身,内置于[iotcat/ushio-js](https://github.com/iotcat/ushio-js)。在使用[iotcat/fp](https://github.com/iotcat/fp)定位设备的基础上,前端用户可以像使用cookie一样使用session。session不依赖与cookie,使用服务端存储。因为这个特性,session可以解决cookie所难以解决的跨域问题。 |
||||||
|
|
||||||
|
|
||||||
|
## 指令 |
||||||
|
+ `session.get(key)`: 根据键名获取 |
||||||
|
+ `session.set(key, value)`: 用键名和键值新建或更新一条session |
||||||
|
+ `session.del(key)`: 根据键名删除session |
||||||
|
|
||||||
|
Loading…
Reference in new issue