TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Signed and Permanent Cookies in Rails 3

19 点作者 lonestar超过 15 年前

3 条评论

wglb超过 15 年前
Looks like a cool feature, but I haven't yet gotten into Ruby or Rails. I do have one question, though. There is an interesting looking language feature I see: <i>20.years.from_now.utc</i>. I would presume that to mean "20 years from this time in zulu". So presuming that <i>20.years.from_now.cdt</i> means central daylight time, is that a different time?<p>To put the question a little shorter, isn't the concept of "20 years from now" independent of time zone, or am I missing something?
评论 #1113655 未加载
评论 #1113646 未加载
Groxx超过 15 年前
I feel like I'm not understanding something. How is this "signed"? It appears they're just storing the user's salt in their cookie... in which case you might as well store any other random info, it doesn't mean it's "signed", it just prevents people from changing their cookie's user_id and logging in as someone else. Didn't they already have something like that in place?
评论 #1114049 未加载
z8000超过 15 年前
"A whole lot easier" Is this a joke?
评论 #1113686 未加载