我应该在会话cookie名称中包括下划线吗? [英] Should I include underscore in session cookie name?

查看:142
本文介绍了我应该在会话cookie名称中包括下划线吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很好奇是否有人使用Laravel,因为第3版在cookie名称中有下划线时在各种版本的IE中遇到设置cookie的问题.

I'm curious if there is anyone using Laravel since version 3 running into problems setting cookies in various version of IE when there is an underscore in the cookie name.

我在我的项目(基于CI构建的电子商务网站)中遇到了这个问题.该问题已修复,删除了cookie名称中的下划线.

I came across this problem with my project (an eCommerce site built on CI). The problem was fixed removing the underscore in cookie name.

虽然我目前正在将该项目移植到Laravel,但我只想检查是否也应从会话cookie中删除下划线.

While I'm currently porting the project to Laravel, I just want to check if I should remove the underscore from session cookie as well.

推荐答案

我绝对会建议从您的cookie名称中删除所有下划线,过去我几次都被它吸引住了,并且很容易提取试图弄清楚到底是怎么回事,那是下划线的小鬼怪

I would definitely recommend removing any underscores from your cookie name, I've been caught out by this a few times in the past whe, and it's easy to pull your hair out trying to figure out what's going on when in the end it's the little underscore gremlin

这篇关于我应该在会话cookie名称中包括下划线吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆