Alternatives when user's browser doesn't accept cookies

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Alternatives when user's browser doesn't accept cookies

    If you have per user information that you want to store in session and the
    setting in web.config is set to cookieless=false so you are intending on
    using cookies, the user's browser is set to not accept cookies, what can you
    do as alternative for storing that data?

    What is the tradeoff if you just set the cookieless=true?

    I am just trying to determine a set of best practices for this on my
    project.

    Thanks in advance,

    --
    Bob Hanson
    CEO
    Custom Programming Unlimited LLC


    Robert V. Hanson Guest

  2. Similar Questions and Discussions

    1. Accept Cookies?
      I want to use Contribute to edit a site that is password protected via existence of a cookie. However, it does not appear to work as it keeps asking...
    2. Browser Cookies in Mac
      Hello, Im developing an application in Actionscript3 in Flash for Windows, but recently I try to develop the same code in Flash for Mac and the...
    3. turning cookieless mode false for client browsers that do not accept cookies
      I have a question about cookies & browser permissions and turning off cookies when creating a web site (cookieless mode in web.config). I have a...
    4. checking whether browser allows cookies in asp.net
      Can you check whether a users browser allows you to use cookies? Cheers Ollie
    5. cookies appearing in browser
      Hi! I have a php website that is showing cookies on screen instead of processing them. When I do a 'view source' I get the following: ---...
  3. #2

    Default Re: Alternatives when user's browser doesn't accept cookies

    If you have cookieless=true, then sessionID will be concatenated to every
    URL string so that it is automatically passed around to each page. As a
    developer this will be seemless to you and the session stuff will just work.
    The only real drawback is the ugly sessionID that will appear in the address
    bar of the user's browser.
    This is the only reasonably simple way to keep track of the user's session
    if they have cookies turned off.

    --
    I hope this helps,
    Steve C. Orr, MCSD
    [url]http://Steve.Orr.net[/url]


    "Robert V. Hanson" <roberth@cpuandsimplepdm.com> wrote in message
    news:vg62nn551q239c@corp.supernews.com...
    > If you have per user information that you want to store in session and the
    > setting in web.config is set to cookieless=false so you are intending on
    > using cookies, the user's browser is set to not accept cookies, what can
    you
    > do as alternative for storing that data?
    >
    > What is the tradeoff if you just set the cookieless=true?
    >
    > I am just trying to determine a set of best practices for this on my
    > project.
    >
    > Thanks in advance,
    >
    > --
    > Bob Hanson
    > CEO
    > Custom Programming Unlimited LLC
    >
    >

    Steve C. Orr, MCSD Guest

  4. #3

    Default RE: Alternatives when user's browser doesn't accept cookies

    Hello Robert,

    I think your question is: How to store asp state information without
    cookies information.

    Generall speaking, the most common options to preserve state are as
    follows:
    Session and Application Variables
    Cookies
    Hidden Form Fields
    QueryString
    File and Database

    I recommend you read one good MSDN article on it:
    "HOWTO: Store State in Active Server Pages Applications"
    [url]http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q175167[/url]

    Hope it helps.

    Best regards,
    yhhuang
    VS.NET, Visual C++
    Microsoft

    This posting is provided "AS IS" with no warranties, and confers no rights.
    Got .Net? [url]http://www.gotdotnet.com[/url]
    --------------------
    !From: "Robert V. Hanson" <roberth@cpuandsimplepdm.com>
    !Newsgroups: microsoft.public.dotnet.framework.aspnet
    !Subject: Alternatives when user's browser doesn't accept cookies
    !Date: Wed, 2 Jul 2003 11:36:41 -0500
    !Organization: Posted via Supernews, [url]http://www.supernews.com[/url]
    !Message-ID: <vg62nn551q239c@corp.supernews.com>
    !X-Priority: 3
    !X-MSMail-Priority: Normal
    !X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
    !X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
    !X-Complaints-To: [email]abuse@supernews.com[/email]
    !Lines: 18
    !Path:
    cpmsftngxa09.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed 00.sul.t-online.de!t-onlin
    e.de!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cyclone .bc.net!sjc70.we
    busenet.com!news.webusenet.com!sn-xit-02!sn-xit-06!sn-post-01!supernews.com!
    corp.supernews.com!not-for-mail
    !Xref: cpmsftngxa09.phx.gbl microsoft.public.dotnet.framework.aspnet:31777
    !X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
    !
    !If you have per user information that you want to store in session and the
    !setting in web.config is set to cookieless=false so you are intending on
    !using cookies, the user's browser is set to not accept cookies, what can
    you
    !do as alternative for storing that data?
    !
    !What is the tradeoff if you just set the cookieless=true?
    !
    !I am just trying to determine a set of best practices for this on my
    !project.
    !
    !Thanks in advance,
    !
    !--
    !Bob Hanson
    !CEO
    !Custom Programming Unlimited LLC
    !
    !
    !

    Yan-Hong Huang[MSFT] Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139