如何尊重"为来自Cookie的域&QUOT静态内容;在IIS6速度规则? [英] How to respect "Serve static content from a cookieless domain" page speed rule in IIS6?

查看:214
本文介绍了如何尊重"为来自Cookie的域&QUOT静态内容;在IIS6速度规则?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何尊重IIS6服务不使用Cookie的域静态内容页面速度规则?

How to respect "Serve static content from a cookieless domain" page speed rule in IIS6?

推荐答案

要创建一个Cookie的网站(或子域,这是一个很常见的最佳实践)在IIS6 / IIS7 / IIS7.5很简单:你需要告诉该网站,你是不是使用的cookies :) 在IIS而言这意味着,不使用会话

To create a cookieless site (or subdomain, which is a very common best-practice) in IIS6/IIS7/IIS7.5 is simple : you need to tell the website that you are not to use cookies :) Which means in IIS terms, not to use a session.

这可以在IIS6 / IIS7通过两种方式来实现。

This can be achieved in IIS6/IIS7 via two ways.


  1. 修改Web.config文件(我的个人建议)

  2. 使用IIS管理器图形用户界面找到设置并改变它。

在你做任何测试,您必须必须必须清除所有Cookie(或所有Cookie为u的测试域),否则,他们会相处,甚至如果u已完成所有步骤通过。

IMPORTANT

Before you do any testing, you must must must clear all cookies (or all cookies for the domain u are testing) otherwise, they will get passed along even if u have done all the steps.

您需要定义会话状态为关闭

<system.web>
        <sessionState cookieName="What_ever" mode="Off" />
</system.web>

注:请注意,属性无Cookie(TRUE | FALSE)并不意味着cookie发送/不发送的cookie)。这对使用会话有/无饼干...并传递一些饼干的GUID到URL,而不是(如果设置为true)。

希望这有助于(我假设你知道如何测试,没有饼干的工作/不工作...)

Hope this Helps (i assume u know how to test that no cookies are working/not working...)

这篇关于如何尊重&QUOT;为来自Cookie的域&QUOT静态内容;在IIS6速度规则?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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