storing client options

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jerry J

    #1

    storing client options


    I have a web application that has a menu item that allows
    the client to chose a style (changes the color scheme).
    What are my options for storing that information so the
    next time the client hits the site the style previously
    chosen is used again?

    Should I use the cookie?

    Jerry J


  • Michal A. Valasek

    #2
    Re: storing client options

    | I have a web application that has a menu item that allows
    | the client to chose a style (changes the color scheme).
    | What are my options for storing that information so the
    | next time the client hits the site the style previously
    | chosen is used again?
    |
    | Should I use the cookie?

    Yes. In fact, cookies are the only solution you can use. Nothing else would
    persist between sessions.

    --
    Michal A. Valasek, Altair Communications, http://www.altaircom.net
    Please do not reply to this e-mail, for contact see http://www.rider.cz
    Keeping Freedom safe from Democracy


    Comment

    • Jason \(MFT1\)

      #3
      Re: storing client options

      wrong! a database can be used to store user setting preferences.


      "Michal A. Valasek" <news@altaircom .net> wrote in message
      news:uDH99xRZDH A.1872@TK2MSFTN GP12.phx.gbl...[color=blue]
      > | I have a web application that has a menu item that allows
      > | the client to chose a style (changes the color scheme).
      > | What are my options for storing that information so the
      > | next time the client hits the site the style previously
      > | chosen is used again?
      > |
      > | Should I use the cookie?
      >
      > Yes. In fact, cookies are the only solution you can use. Nothing else[/color]
      would[color=blue]
      > persist between sessions.
      >
      > --
      > Michal A. Valasek, Altair Communications, http://www.altaircom.net
      > Please do not reply to this e-mail, for contact see http://www.rider.cz
      > Keeping Freedom safe from Democracy
      >
      >[/color]


      Comment

      • Natty Gur

        #4
        Re: storing client options

        Hi,

        Cookies and Database can both be used. every option got its Advantage
        and disadvantage. cookies for example are limited and transfer over the
        net. database requires data retrieval that will harm RPC. there is
        another option that I think is going to be supply with next version of
        ASP.NET. you can save data using Memory map file. I think there is
        already application block for doing so [1].

        [1]
        http://msdn.microsoft.com/library/de.../en-us/dnpag/h
        tml/CachingBlock.as p

        Natty Gur, CTO
        Dao2Com Ltd.
        34th Elkalay st. Raanana
        Israel , 43000
        Phone Numbers:
        Office: +972-(0)9-7740261
        Fax: +972-(0)9-7740261
        Mobile: +972-(0)58-888377


        *** Sent via Developersdex http://www.developersdex.com ***
        Don't just participate in USENET...get rewarded for it!

        Comment

        • Michal A. Valasek

          #5
          Re: storing client options

          | wrong! a database can be used to store user setting preferences.

          Yes, but you must still use cookies to found and identify the user (assuming
          that they're not logging into the application using unique user name and
          password).

          --
          Michal A. Valasek, Altair Communications, http://www.altaircom.net
          Please do not reply to this e-mail, for contact see http://www.rider.cz
          Keeping Freedom safe from Democracy


          Comment

          Working...