Try searching the forums for users online; the solutions given mostly suggest using a database, because otherwise your script needs to locate, read, parse, and use every single session data file, while recognising ones that have expired but not yet garbage-collected. A lot of hassle.