minor cleanup
add resume() functionality
use Phpfunc for session_* functions