Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to Enable or Disable browser cookies option by code(java script/.net)

How to Enable or Disable browser cookies option by code(java script/.net)

Scheduled Pinned Locked Moved ASP.NET
csharpjavatoolstutorial
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Samarjeet Singh india
    wrote on last edited by
    #1

    I Want to check client brwoser setting if client browser cookie option block/disable then I want to enable it.... Thanks to all

    V S 2 Replies Last reply
    0
    • S Samarjeet Singh india

      I Want to check client brwoser setting if client browser cookie option block/disable then I want to enable it.... Thanks to all

      V Offline
      V Offline
      Vimalsoft Pty Ltd
      wrote on last edited by
      #2

      look at this posts http://forums.asp.net/t/1149145.aspx[^] http://www.beansoftware.com/ASP.NET-Tutorials/Cookies-ASP.NET.aspx[^] check at the Bottom http://www.experts-exchange.com/Programming/Languages/C_Sharp/Q_23483674.html[^]

      Vuyiswa Maseko, Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code. C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/

      S 1 Reply Last reply
      0
      • S Samarjeet Singh india

        I Want to check client brwoser setting if client browser cookie option block/disable then I want to enable it.... Thanks to all

        S Offline
        S Offline
        saini arun
        wrote on last edited by
        #3

        You cannot change the browser settings to enable/disable cookie support. You can only check whether browser supports cookie or not [^]

        S 1 Reply Last reply
        0
        • V Vimalsoft Pty Ltd

          look at this posts http://forums.asp.net/t/1149145.aspx[^] http://www.beansoftware.com/ASP.NET-Tutorials/Cookies-ASP.NET.aspx[^] check at the Bottom http://www.experts-exchange.com/Programming/Languages/C_Sharp/Q_23483674.html[^]

          Vuyiswa Maseko, Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code. C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/

          S Offline
          S Offline
          Samarjeet Singh india
          wrote on last edited by
          #4

          I am using IE6 and writng fallowing code code <html><head> <title>detect browser cookies</title> <script language="javascript" type="text/javascript"> function detect() { if(navigator.cookieEnabled) { alert('Your browser has cookies enabled.'); } else { alert('Your browser has cookies disabled.'); } } </script></head> <body onload="detect();"></body> </ht but result is 'Your browser has cookies enabled' whether it is block or not

          1 Reply Last reply
          0
          • S saini arun

            You cannot change the browser settings to enable/disable cookie support. You can only check whether browser supports cookie or not [^]

            S Offline
            S Offline
            Samarjeet Singh india
            wrote on last edited by
            #5

            I am using IE6 and writng fallowing code code <html><head> <title>detect browser cookies</title> <script language="javascript" type="text/javascript"> function detect() { if(navigator.cookieEnabled) { alert('Your browser has cookies enabled.'); } else { alert('Your browser has cookies disabled.'); } } </script></head> <body onload="detect();"></body> </ht but result is 'Your browser has cookies enabled' whether it is block or not

            A 1 Reply Last reply
            0
            • S Samarjeet Singh india

              I am using IE6 and writng fallowing code code <html><head> <title>detect browser cookies</title> <script language="javascript" type="text/javascript"> function detect() { if(navigator.cookieEnabled) { alert('Your browser has cookies enabled.'); } else { alert('Your browser has cookies disabled.'); } } </script></head> <body onload="detect();"></body> </ht but result is 'Your browser has cookies enabled' whether it is block or not

              A Offline
              A Offline
              Abhishek Sur
              wrote on last edited by
              #6

              This is because IE6 supports Cookies... :cool:

              Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


              My Latest Articles-->** Simplify Code Using NDepend
              Basics of Bing Search API using .NET
              Microsoft Bing MAP using Javascript

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups