Re: Active PHP Sessions
| From: | Brent Clark | Date: | Fri, 07 May 2004 12:42:39 +0000 |
| Subject: | Re: Active PHP Sessions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-185609@lists.php.net to get a copy of this message | ||
> I'm on a shared server, and I do not believe that I have access to the
/tmp
> directory where the session files are stored (I believe that is how it
works
> :). I want to keep track of which sessions are active. Basically, I just
> want a list of the active sessions for my site.
>
> How can I do this?
Hi
Are we talking about smb shares for linux.
If so, why dont you just ask your admin to create a share to "/tmp"
or create via php a web page that looks at /tmp and displayes the file.
Remember, there are many ways to skin a cat.
>Copied and pasted from za.php.net<
<?php
$dir = "/tmp/";
// Open a known directory, and proceed to read its contents
if (is_dir($dir)) {
if ($dh = opendir($dir)) {
while (($file = readdir($dh)) !== false) {
echo "filename: $file : filetype: " . filetype($dir . $file) .
"\n";
}
closedir($dh);
}
}
?>
Kind Regards
Brent Clark