我需要将数据框存储在烧瓶会话中,我这样做:
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"
但没有任何改变!
我该如何解决这个问题?