Playing with Sessions

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!

Moderator: General Moderators

Post Reply
mendrinos
Forum Newbie
Posts: 1
Joined: Sun Apr 16, 2006 4:16 am

Playing with Sessions

Post by mendrinos »

Hello,

just need to give some information to the site admin's panel with how many sessions have the same variable.

for example I am keeping the login details of a logged user in $_SESSION['user'].

Any tip regarding how I can see how many sessions exists on server with the specific "user" attribute?

Thanks in advance.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

That information is not available if you are using file based sessions. If use used database sessions it's a simple query (likely)
Post Reply