There's probably some way of totalling up the number of currently active sessions, do these users have to be actually logged in, or just looking at the page in question?
And why can't you use MySQL? Sounds like some kind of school assignment, if you're working under restrictions like that.