Ok thanks for that advice, i got glob() working great.
Although, the session arrays its returning seem to be in a strange format from regular arrays.
Ive never gotten this deep into arrays before, so im learning.
From what i make of it, the session values are being stored, also with their datatype representation ...
example:
user_id|s:3:"166";username|s:12:"SS_Marvin";gender|s:6:"Male";c1|
im assuming the s stands for string, and the i stands for integer?
Im trying to get the username info from each array
Here is the code ive constructed so far
foreach (glob("/tmp/sess*") as $filename) {
$file = file($filename);
foreach($file as $sess_file) {
print_r($sess_file);
}
}
the print_r is just so i could see what its returning, and its returning text like i pasted above.
Is their a php function to decode this text into normal output, maybe somthing i could use with in_array() to search for the username?
Or maybe an easier way?
Any comments are welcome, thank you.