1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Requiring Cookies....

Discussion in 'Off Topic' started by MGSteve, Aug 19, 2011.

  1. MGSteve

    MGSteve Well-Known Member

    I notice that XF requires cookies in order for users to be able to login, I just wondered what other developers do with reference to cookies.

    On the frameworks I've developed in the past, I've always tested for Cookies and used them for session id storage if they're there and if not, passed a session key via the URL instead.

    However, the latter is rife for session hijacking, even though I put in various tests against it - I'm wondering if its worth just saying to people that if they want to use the site, they need cookies.

    Forums are one thing, but many of the other sites on the framework are online shops and a cookie only policy would mean that people who don't accept cookies wouldn't be able to do even basic things like add products into the basket!

    Just thought I'd take a straw poll of what other developers think.
     
  2. James

    James Well-Known Member

    Local Storage would be good for that!
     
  3. Danny.VBT

    Danny.VBT Active Member

    By Local Storage, do you mean...a cookie?
     
  4. MGSteve

    MGSteve Well-Known Member

    You can use local storage within the browser as well, but from memory not all browsers support it. But chances are, if someone's disabled cookies, then they'll have disabled local storage as well!
     
  5. James

    James Well-Known Member

    Danny.VBT likes this.
  6. James

    James Well-Known Member

    Perhaps, but even if they haven't disabled a cookie, local storage can be more effective than a cookie (for things like storing shop items, etc)
     

Share This Page