test cookie and session
add update file func and set media root