Comments (3)
This functionality is not published.
Logically the global / live session count belongs to the Store
. But it is not possible to tell number of sessions in some implementations (e.g. GAE memcache store).
from session.
is there any way to access all the sessions in the store?
say, if i wanted to go through and remove all the sessions with some attribute?
from session.
No, there is not.
If you need this, write / provide your own implementation of the Store
interface, where you will naturally have the session collection. Be sure you make it safe for concurrent use.
from session.
Related Issues (13)
- Deleting and creating a new session on the same request causes dangling? HOT 5
- How to update session attributes in Store without re-adding cookie HOT 4
- Eliminate log.Println for in-memory store add, remove and timeout ops HOT 2
- go1.11: "appengine build tag is now deprecated" HOT 2
- Session only works... HOT 3
- Migrate Appengine related parts to a different package
- memcacheStore Get load logic wrong HOT 5
- Async save to datastore incorrect HOT 1
- Session data not being removed HOT 12
- sessionImpl.mux can be nil HOT 5
- Proposal: Releases HOT 3
- Question: The signatures of the Store interface methods HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from session.