I forgot,
I was just thinking about a way to solve this, at least temporarilly, and I would be interested in your opinion.
Well, a while ago I had to write a little script to save configuration settings, maybe not the regular way, but in a php-file I could include on runtime, holding a configuration array like this:
<?php
$config[0]['setting1'] = .....;
etc.
?>
This way I could include the file when needed and had direct access to the array. This works fine and seems to be even fast.
Maybe this would be a way to solve the problem. The variables would be visible to the application but not to the user, this way I could get away from hidden fields. I'm thinking about creating the file when necessary at runtime, giving it the name of the session ID. Only problem would be the garbage collection.
What do you think about this. This is only just in case nobody finds a solution to the $_SESSION-variable problem.
Best regards
gaucho