From 97b68bdd66c893004e72b4a0d3bd58fdf86356d1 Mon Sep 17 00:00:00 2001 From: Pengfei Xue Date: Thu, 13 Feb 2014 18:24:05 +0800 Subject: [PATCH] fix bug, can not remove session file --- session/sess_file.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/session/sess_file.go b/session/sess_file.go index e8746532..7e9e2229 100644 --- a/session/sess_file.go +++ b/session/sess_file.go @@ -152,8 +152,7 @@ func (fp *FileProvider) SessionExist(sid string) bool { func (fp *FileProvider) SessionDestroy(sid string) error { filepder.lock.Lock() defer filepder.lock.Unlock() - - os.Remove(path.Join(fp.savePath)) + os.Remove(path.Join(fp.savePath, string(sid[0]), string(sid[1]), sid)) return nil }