Chrome开发者工具已经开始警告我“Cookie长度应该小于或等于4096个字符”(拼写错误和全部)。
麻烦的是,我的cookie只有~1100个字符。
但是,我认为这可能是原因,cookie在请求的生命周期内被设置了7次。
所以浏览器错误或我应该破解Codeigniter不设置7次?
下面是我的响应标题的一部分(实际值替换为随机字符串): -
Set-Cookie:cms_session=B7O7MbSL5CiqAuQBFscYlVv0Pq0WIahPzJp0kYslMX4wJTK8CSNnfKMNxXGP0ItNohXwZJaFLqPYU1PgtMM4DHX0ozGvhRV4bq8BIbdj7K8E3fNz5uI5s1KZ2QINFlBVM0c4dTKC9X2rxxTIC12Zc3RytVjxOtiXgvzz2K7qcEkC0C5JUB5ATrrmYJUz5WGLmb92WjKhbXBQEd6FmVh3bzI3xaQZHW4xBDcwN7k2q5zFQKgYTA6M6mp12T6WJALnlrI6lsX4i47ALp2cWE9ING9icmC9aJ9aOdx97PlDPZ8KyGn1hfUvqJcSpUcggLf2qPUzz3ZfxYrY9E5bG35U2DwvoFNYJrtAOC1DD0BpBfIopd46sqVFdJ7kSwv5pliiDx5DixSrEyeMf6J0rv17jzIaJrljEGSJufjzuKEdnGksfa3ZK9UM82v4bP6wemcTnKOzJ2aeLfRMMwmaztmV54K7W7ZZOEHxRRkdX0ZTCVbuojFE3BJfLEJ0y761bBxNIX98ELJktvc07OaTr2HvUok6ZNSMDi6bgvIKTWxiJvmlxJRNDYY348eLcZnLeF31ZAtGcBD5lQYwvqGXV3VxkRWRLXSCx3PvWmPJcC4Riek4jyFaKIpodFx9RpcIS7ud0ZhRVsDazF0hyCgvU3b6dbR5s3JGWuwIwAx41zMdpfti8SsbwlIDQQA2C2ViDut3t1wznO5yd3mV270ESetl6w1OftI5nV2Q6GapEJkInroXzSnOYeDYYwXHvNb17OhPDw8H2lDbEsWzYymGydTISPp3kLdzqL86wGTpADK71eM2fVXiBmHpQ0bvADNlYaoWCTts65JlQorv3LpA8M7FZ6iXt0auOGpMIYFKlqf8PTisPOXW9j9TOrfZSI06MfHLoVFoa7DLZCZZHUVqckxE5MmnOUNvK5WO3IFdnJvdnLNNAE4FHSRUlJ3RmVSY2It91QZTWUUIh1Ql8otSniodLBEigv89qTMfOu4ZyLUCqvWFep0eipDMbmwz02QOwe9A8mcRrlT1p8HKHk9YJVmajDfJaYbZozZ09NM7ebtKXm9YJVvNwWQ3tJnrNNlqQH9QShyzWokfkovg3eWlupSB9l2C37HY5EIpkqHVxRPgKoQgSmM14STN; expires=Fri, 07-Apr-2017 20:20:36 GMT; Max-Age=28800; path=/
Set-Cookie:cms_session=j2LC4jd9Aklt4XXSCYFQVNNrGgKGlQb3GnoTaJQSb9b7ZIXM9nvyHFGNdsib7AcZQOnOaop7JEfHMJ15Iho9pPPFd151hMX90PI5GAQO8iWlZ5BvkHklbHyEmcV9dnRXOz3ElfD2f81esTkGBq1JHbL8JEtYctAroBrz59T6JoQPtWiTVbpMwsWqdfh065Ez5gM05BHpAurKqrnW666F6angRLpkCyjz52J8I1BcYqkCBzm7sU8NxGCKA67fGTXywNlWgiLziM7WTmhanp3NnjKsuvQDjheUJaWM6yx7HPfsqZ2INkT4tvLUBGw4hLHqHqF21TVM7RhDiCX0IBG9UiHwkYucjcfXEpyqT57YbwsOYINH3gryhxRHV8ODnWKRWguNdbZJbeh39vtL8O72uEbUW32BwUqR2DYWt5gnhoScmsOeXxO8tK58xaBxeoEdO0nvNglFFapX6DQHRQcMBSjQZoOUCAdlZCPQPtDbDX1b1COXvJU4Oju1TxEzAE2SVkxapP48qO4KUKXe2396NPqTnNUsqbbxayXjp7sMqD6idYdGTx6goV6WivGkdberAN0sYJtuBeOPazkarfV8ZlK75SLWJPFucqLsuobwjNIZPKWqwnQNEi2647nXegasuMRhk8jeLjI4HRaNgbhq8OdrdrIwW7GvJhb6qhKdpoNjrV57KDxNxTOwj4oBkn1HxU79Co0U6K6gEYVUS1lZljGtodPtdDjCIrA8N1C02wyE1V91nKJqa7jniEmT40TbS1p2Y1jiW7eyWORXEsbTFIepobeKX3JIUknhUMiCucEgR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bnLzIujsctgA4KNpgLfpxdi8eACSSpqSQYKDtek4jPIQlcVYQdMuU5HHf1i3asm6mp6njA7i76kVmliMS9CS0uZclq7ULmHX075PyLbMfkbTlni6mNzk8QK47O0xQrxWQdnaC2sX93vA8iYljNvjsiS4WLjEsWmTbhWQBcS5RuYorWLA0aJk6yXL5ADTKeoivb43Wcx2lwtdnrj7bjOvxBbI4Oxwmt7h2MNx4yylzMRHAUkDWrnfiimfvur8XobNU2AzXwm27PBLuMoR7hjh2gjsKxN6ncm45lWPQegTTnOgplVwgjgSjgcURtmKt92igb5zpJcvp54T83ZkNQbUUYNZWR6aSVkDulSP181qdEw5eskf8OfEm6Wx3sdWEt2wwzvszRdMf6DLPbNHKJTtMD1IxBcuh7kAE0fecUorAUu2BpAwVrDFN90MsKlNAtCqZOi7ebFXOKpOuh7ZHKThzv25GFyvI4DUXR5AtA9dFzMuwwlUTZjudrEsWRgI9kI2k57R8BWcbiIvR30g3uLp5DIHVRfC51sntQ6mmFqJcZXWbxFXbaQ4gmUHBRySJoGF2dObqAVD8fBkSGeOMYQ7ObuAlZY87lzh2O04wg; expires=Fri, 07-Apr-2017 20:20:36 GMT; Max-Age=28800; path=/
答案 0 :(得分:0)
我不喜欢黑客攻击CI2所以我使用数据库方法进行会话处理,这样它只会设置一次cookie。