又换回了 File Based Session Stroe
galeki
posted @ 2009年2月28日 19:47
in RoR
, 4716 阅读
早期 Rails 一直是默认用文件保存 session,原来 blog 也用这个,就是 session 文件得经常清一下。
后来换成了 session 数据库表,其实也差不多,定期得清下表。 不过有两次 session 表损坏,导致程序出错,和频繁的更新 session 表有一定的关系。
最后就是目前普遍的那种 cookie session 了,忘了 Rails 2 点几开始有这个的了,这个东西不错,没有那么多乱七八糟的事情。
不过最近大家反应 blog 出现了一些奇怪的现象,比如有的时候登录成功后,发现并没有登录上;评论点击发送后,没有发送成功,也没有错误消息;保存文章也出现了这种情况。
仔细想想,发现这些情况都是从上次升级 Chito 1.1.0 之后出现的,而在 Chito 1.1.0 中才开始用的 cookie session。本地测试也遇到两次评论发送没反应的现象,清楚下浏览器的 cookie 或者刷新下页面就好了。
具体原因不明,大致感觉是保存在浏览器 cookie 中的 session 没有发送成功,然后在服务器那边 Invalid Authenticity Token 了。
随机出现,没有规律,这个比较郁闷。
现在只好又换回了 file session,还是这个放心啊……
啥个原因捏
2009年2月28日 21:19
会不会是AJAX的问题?
2009年3月01日 16:10
难道 ajax 请求没有正确发出 cookie 中的 cookie 信息?
不过登录过程没有牵扯 ajax,也出现了问题,诡异……
2021年7月23日 21:42
What are the trending destinations in France at the present? We can easily find all info on Things to do post with detailed article.
2022年9月08日 13:15
I always enjoy finding a website that provides beneficial info since I like learning new things. Many times when I have been to this particular website I've truly really enjoyed the great content on this website. A great site and I will be back once more for further useful content… voice mail service
2022年9月14日 13:42
Make the most of mainly premium substances - you will find him or her for: تصليح ثلاجات
2022年9月22日 13:57
It is especially decent, though look into the tips during this home address. Orlando Termite Treatment
2022年9月22日 14:03
You should mainly superior together with well-performing material, which means that see it: Tampa Bed Bug Treatment
2022年11月05日 21:33
This is helpful, nonetheless it can be crucial so that you can check out the following website: proextender peru
2023年1月16日 22:39
Youre so cool! I dont suppose Ive read anything similar to this before. So nice to uncover somebody by incorporating original thoughts on this subject. realy thanks for beginning this up. this web site is one area that is needed over the internet, somebody with a bit of originality. valuable work for bringing something totally new to the internet! 룸알바
2023年1月19日 17:42
Some truly nice and useful info on this web site , as well I believe the design has got fantastic features. SAP Finance
2023年1月21日 21:43
When visiting blogs, i always look for a very nice content like yours . 아로마마사지
========================
Only a smiling visitor here to share the love (:, btw great design . Gold99
2023年1月23日 21:31
I think you have remarked some very interesting points , thanks for the post. 11 Best Accessories for MacBook Pro 13
2023年1月24日 15:15
You are so cool man, the post on your blogs are super great.*;;,; cryptocurrency
2023年1月24日 23:27
reading tech blogs to keep me updated on technology is what i do daily. i am a tech addict., 성기확대수술
2023年1月31日 02:42
My partner and i appeared to be aware of this particular currently, however there seemed to be several useful bits which finished the picture to me, thanks a lot! Dallas power bi servcies
2023年2月14日 22:56
This site is actually a walk-through its the details you wanted about it and didn’t know who to question. Glimpse here, and you’ll certainly discover it. 市場推廣
========================
The great news on News is very much imptortant to us. Room To Rent
2023年3月11日 23:55
You can certainly see your skills within the work you write. The arena hopes for even more passionate writers such as you who aren’t afraid to mention how they believe. Always follow your heart. 메이저바카라
2023年3月17日 18:20
Thanks for sharing this good post. Very inspiring! (as always, btw) 온라인카지노
2023年4月08日 02:36
Awseome article, I am a big believer in posting comments on blogs and forums to help the blog writers know that they’ve added some thing of great benefit to the world wide web! 바카라사이트
2023年4月12日 21:37
I dugg some of you post as I cogitated they were handy extremely helpful <a href="https://www.catalba.com/">여우알바</a>
2023年4月25日 02:36
Positive site, where did u come up with the information on this posting? I'm pleased I discovered it though, ill be checking back soon to find out what additional posts you include. Text To Speech Free
2023年4月27日 16:40
Hello! I’ve been following your blog for a while now and finally got the courage to go ahead and give you a shout out from Kingwood Texas! Just wanted to mention keep up the good work! cheap auto transport
2023年4月28日 23:53
Thanks for helping out, excellent information. voyance audiotel serieuse
2023年8月17日 14:32
Thank you very much for the useful information that the blog has shared. it's pretty perfect you can try it whenever you want here ( Pizza Tower ).