怪怪所以下面的代码工作完全在FirefoxCFcookie在不同的浏览器
<!--Cookies-->
<cfset timer = createTimeSpan(0,3,0,0)>
<cfcookie name = "user.ID" value = "#userID#" expires="#timer#"> <!--this will expire in three hours -->
<cfcookie name = "user.Site" value = "#userSite#" expires="#timer#">
<cfcookie name = "user.Sess" value = "#userSess#" expires="#timer#">
<cfcookie name = "user.FName" value = "#userFName#" expires="#timer#">
<cfcookie name = "user.LName" value = "#userLName#" expires="#timer#">
<cfcookie name = "user.Email" value = "#userEmail#" expires="#timer#">
<cfcookie name = "user.SiteFirst" value = "#userSiteFirst#" expires="#timer#">
<cfcookie name = "user.RoundsTotal" value = "#userRoundsTotal#" expires="#timer#">
<cfcookie name = "user.RoundsCurrent" value = "#userRoundsCurrent#" expires="#timer#">
<!-- And now we send the user off to wait.cfm where they will wait --->
<!-- Users will not head to choose their picture choice --->
<script type="text/javascript">
location.href='picChoice.cfm';
</script>
在Firefox中,所有cookie中的值是完全通过。任何其他浏览器,所有的cookie都是空的。
希望有人能看到错误的地方,我不能。如果您想查看完整的cfm,请在此处输入:http://pastebin.com/4G4wvjLd
这是很多饼干。你有没有想过使用localStorage? –