//设置Session
request.session['名称']='内容'
//获取Session
request.session.get('名称'.默认值)
//删除Session
del request.session['名称']
//设置Cookie
response.set_cookie('名称','值')
//获取Cookie
request.COOKIES[名称]