spegling av https://github.com/IoTcat/ushio-session.git
Du kan inte välja fler än 25 ämnen
Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
iotcat
43d95bd09a
|
2 år sedan | |
---|---|---|
php | 3 år sedan | |
src | 2 år sedan | |
.gitignore | 4 år sedan | |
Dockerfile | 2 år sedan | |
LICENSE | 4 år sedan | |
README.md | 4 år sedan | |
package-lock.json | 4 år sedan | |
package.json | 4 år sedan | |
pm2.json | 2 år sedan | |
yarn.lock | 4 år sedan | |
zh.md | 4 år sedan |
README.md
ushio-session
Cloud Storage solution for frontend webpage development.
Positioning
ushio-session is the predecessor of js-session, built in iotcat/ushio-js. On the basis of using iotcat/fp to locate the device, front-end users can use sessions like cookies. The session does not depend on cookies and uses server-side storage. Because of this feature, session can solve cross-domain problems that cookies are difficult to solve.
Instructions
session.get(key)
: Get according to the key namesession.set(key, value)
: Create or update a session with key name and key valuesession.del(key)
: delete session based on key name
Application
ushio-session has now been widely used in the ushio website system. You have ushio-session support behind many of the services on the websites supported by Ushio. such as:
- Cross-domain and cross-device music continues to play
- User management identification
- Language preference record
- Video playback position is recorded across devices
- User ID management
- etc..