Cookies situation

Discussion in 'PHP' started by afonseca, Nov 29, 2006.

  1. #1
    Hi!

    I have a ecommerce site that works with cookies.
    Is any other way to built a ecommerce site (with shopping chart) without cookies?
    If not, how can I make the browser to recognise if the cookies are active, in order to let the user know (with a popup) that It must set cookies availables in his browser?

    Thanks
    António
     
    afonseca, Nov 29, 2006 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    You can use sessions. If you don't want that, try to set a cookie, redirect, check if it exists, and if not throw a message.
     
    nico_swd, Nov 29, 2006 IP
  3. afonseca

    afonseca Peon

    Messages:
    48
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Ok. Thanks for your reply.
    My question is: can I have sessions without request the user to log in?

    "try to set a cookie, redirect, check if it exists, and if not throw a message."
    Do you have any example or a web page where I can learn how to do it?

    AF
     
    afonseca, Nov 29, 2006 IP
  4. KC TAN

    KC TAN Well-Known Member

    Messages:
    4,792
    Likes Received:
    353
    Best Answers:
    0
    Trophy Points:
    155
    #4
    Yes, simply start the session once the user enters the designated page. You might have a problem deciding when to clear a user's session..
     
    KC TAN, Nov 29, 2006 IP