Hi
I've always tried to impose hierarchy and consistency in the use of session variables in order
to keep track of them very easily, but the problem is that I end up with very long session names such like :
$_SESSION["my_site"]["mod"]["shop"]["pics"]["folders"]
$_SESSION["my_site"]["mod"]["blog"]["pics"]["folders"]
But I like the fact that I can list all the variables used with print(nl2br(print_r($_SESSION["my_site"], true)));
Anyway, if you know a better way, please let me know!
I've always tried to impose hierarchy and consistency in the use of session variables in order
to keep track of them very easily, but the problem is that I end up with very long session names such like :
$_SESSION["my_site"]["mod"]["shop"]["pics"]["folders"]
$_SESSION["my_site"]["mod"]["blog"]["pics"]["folders"]
But I like the fact that I can list all the variables used with print(nl2br(print_r($_SESSION["my_site"], true)));
Anyway, if you know a better way, please let me know!