Web Analytics Made Easy -
StatCounter notify if cookies are rejected - CodingForum


No announcement yet.

notify if cookies are rejected

  • Filter
  • Time
  • Show
Clear All
new posts

  • notify if cookies are rejected

    How would I notify the user if a cookie atempted to be created was rejected?
    ~Designer's Toolz~

  • #2
    Something like this
    PHP Code:
    ("cookie info in here as usual");

    'Cookie not set';


    • #3
      checking whether the cookie is set is the way to go , but you need to refresh the page before you check for a cookie as the cookie will not be usable until the next page view, this is more awkward than it sounds , since if a cookie can not be set its easy to end up in a useless loop looking for non-existant cookies.

      you will probably need to use a session in conjunction with your cookie checker as session data is available immediately and sessions can be used even if cookies are disabled.
      resistance is...

      MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)


      • #4
        good thinking. Thanks ya'll. ya'll have helped me a lot....need any advertising or anything lemme know.
        ~Designer's Toolz~