getting the number of sessions
Moderator: General Moderators
-
psychotomus
- Forum Contributor
- Posts: 487
- Joined: Fri Jul 11, 2003 1:59 am
getting the number of sessions
is there away to get the number of sessions currently in use like $_SESSION['test'], to get how many users on the site have a #_SESSION['test'] variable in use?
-
psychotomus
- Forum Contributor
- Posts: 487
- Joined: Fri Jul 11, 2003 1:59 am
- Sevengraff
- Forum Contributor
- Posts: 232
- Joined: Thu Apr 25, 2002 9:34 pm
- Location: California USA
- Contact:
Are you using the default "file" based session or a custon DB handler?
In either case it should be possible to find the information you want. In the former case you can count the number of files in the tmp folder. If you want to know what variables are set you'll have to parse the files there.
If you're using a custom DB handler it should be trivial to gather either piece of information, but the exact method will depend on your handler.
In either case it should be possible to find the information you want. In the former case you can count the number of files in the tmp folder. If you want to know what variables are set you'll have to parse the files there.
If you're using a custom DB handler it should be trivial to gather either piece of information, but the exact method will depend on your handler.
-
psychotomus
- Forum Contributor
- Posts: 487
- Joined: Fri Jul 11, 2003 1:59 am
-
psychotomus
- Forum Contributor
- Posts: 487
- Joined: Fri Jul 11, 2003 1:59 am