【发布时间】:2022-01-29 17:08:01
【问题描述】:
我需要在烧瓶会话中存储数据帧,我这样做:
session['pd'] = pd.to_dict()
我有这个错误:
UserWarning: The 'session' cookie is too large: the value was 14773751 bytes but the header required 26 extra bytes. The final size was 14773777 bytes but the limit is 4093 bytes. Browsers may silently ignore cookies larger than this.
samesite=samesite,
我添加了这一行:
app.config["SESSION_TYPE"] = "filesystem"
但没有任何改变!
我该如何解决这个问题?
【问题讨论】:
-
@charchit 我添加了这一行:app.config["SESSION_TYPE"] = "filesystem" 但没有任何改变!
标签: python html dataframe flask flask-session