smrchy / rest-sessions Goto Github PK
View Code? Open in Web Editor NEWREST Server for redis-sessions
REST Server for redis-sessions
Hi,
I have test the tool, and it is a great software!
However, I not sure if the TTL effect any key under redis.
For example
curl -X PUT "http://localhost8101/mywebapp/create/username?ip=1.2.3.4&ttl=60"
provide the expected results:
{"token":"93wSlU3fsD3ndcLpBWXYBmMfN******************************************pd1"}
But when going to redis-cli I can see the key exist even after 60 sec.
Check the TTL of the key provide
(integer) -1
which mean "The command returns -1 if the key exists but has no associated expire."
see more here http://redis.io/commands/ttl
Is it a bug?
Want to override _wipe function with my db function to capture session timeout time stamp for my other use.
I know that if I update the data this will reset the idle count but for this I need to have a token, In my case the userID is already a token that was provided, If I list all the sessions (only one suppose to be shoved), the token is unknown but to update the idle counter it is required.
I can't use the newly generated token to handle future requests.
Any ideas on how this can be handled ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.