怪怪所以下面的代碼工作完全在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? –