fix session file write bug

when use fs.f.Write in updatecontent
the session content always append not override.
now fix it with
    fs.f.Truncate(0)
    fs.f.Seek(0, 0)