in reply to chmod for cgi

Thank you for your insight.

The original intent was:

chmod(0755, './STATES'); open(SAVEDSTATE,">$STATE_DIR/$session_key"); save_parameters(SAVEDSTATE); close SAVEDSTATE; chmod(0000, './STATES');

I think this is a little jicky and will switch to saving state to a MySQL database.