www.webdeveloper.com
Results 1 to 5 of 5

Thread: Is it possible to remember a user's choice without cookies ?

  1. #1
    Join Date
    Aug 2004
    Location
    Switzerland
    Posts
    1,101

    Is it possible to remember a user's choice without cookies ?

    As the title says, I'd like to remember the user's choice without having to store a cookie...
    That's mainly meant as an alternative website without cookies, for people who inactivated the cookies... So my main concern is to be able to remember that the user chose the "simple" interface, without having to call back for a cookie...
    Is it possible ?
    ( I'm not at it yet, I just want to know if it can be done... )
    Other thing, while I'm at it : is there a simple way to put a choice of two languages ? Like with a php include ? But same thing, it wouldn't have to rely on cookies to work...
    Thanks !!!!
    Ness

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    18,923
    Only other way I can think of would be to have the users register, store their preferences in a database, then retrieve those preferences when they log in.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  3. #3
    Join Date
    Aug 2004
    Location
    Switzerland
    Posts
    1,101
    yeah, I thought about that one, too.
    But is there another way ? If I redo my site to do it without any javascript, I also want to do it without any cookies...

  4. #4
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    18,923
    Well, you have to store the preferences somewhere:

    1. On the user's computer = cookies.

    2. On the server = some sort of registration and user database.

    Less automated, more messy option I don't think I'd recommend: when the user selects his/her preferences, use the GET method to send them so that they are in the URL. At the resulting page, display a message telling the user to bookmark this page to save those preferences. Then when they return to your site using that bookmark, the preferences will be in the URL.

    Unreliable server-side alternative: record their IP address and preferences in a database. Unreliable because many ISP's have dynamic IP addressing for their customers.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  5. #5
    Join Date
    Aug 2004
    Location
    Switzerland
    Posts
    1,101
    yeah... I see... So, it's not possible to do it without cookies or without a database... toooooooo bad.
    I was mainly looking for an alternative to my cookie-basket website. People who don't have cookies enabled on their website will never want to come back after what they saw... lol !!!
    It's... not possible to imagine... lol !!
    If you want to have a look, just for the fun of it, try inactivating js, inactivating the cookies, and go here : website
    It's horrible.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles