PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
hi,
i have pages in which users logins using sessions.
I want to see all the session that have been created using a function or code.. can any one help me?
Actually there is a way. You have to create your own session handler and store the sessions in your own directory or a database. Then you can easily view the active sessions and session data.
If they are stale, PHP will not use them. Plus, you could potentially have multiple server sessions in there (in a shared host environment.) This is why database sessions are preferred.
VladSun wrote:Maybe it can be done by using the session storage ...
E.g.
Just an example - it's not supposed to cover all of the storage methods ... I've never said use file-based session storage instead of DB-based session storage ...
I posted it in contrast of your answer
feyd wrote:There is no one function that can show you all the sessions currently active.
to the question
manjit.kool007 wrote:I want to see all the session that have been created using a function or code.. can any one help me?
There are 10 types of people in this world, those who understand binary and those who don't