What do you do when cookies are not allowed?

Discussion in 'ASP.NET / ASP.NET Core' started by howiesfunware, May 2, 2009.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. On my web site I have a simple picture flip book. I store some variables in cookies but it will error if cookies are not allowed.

    Is there a check I can do in my vwd code to see if cookies were not allowed?
     
  2. Here's a sample code.

    if (Request.Browser.Cookies)
    {
    store variable in cookie.
    }
    else
    {
    store variable in session.
    }

    Dexter
    myasp-net.comhttp://www.myasp-net.com
     
  3. Dexter, if I may, where would that go? in the code behind, Page_load?
    thanks!!!
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page