Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7507735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T22:32:50+00:00 2026-05-29T22:32:50+00:00

I am running Android Honeycomb 3.2.1 and I am having trouble getting the browser

  • 0

I am running Android Honeycomb 3.2.1 and I am having trouble getting the browser to stop accepting cookies. I have the following code:

first.html:

<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script type="text/javascript" src="cookie.js"></script>
        <script type="text/javascript">
            setCookie('testing','test cookie',365);
            window.location.href = 'second.html';
        </script>
    </head>
    <body>
    </body>
</html>

second.html:

<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script type="text/javascript" src="cookie.js"></script>
        <script type="text/javascript">
            var temp = getCookie('testing');
            alert(temp);
        </script>

    </head>
    <body>
    </body>
</html>

cookie.js:

function setCookie(c_name,value,exdays)
{
    var exdate=new Date();
    exdate.setDate(exdate.getDate() + exdays);
    var c_value=escape(value) + ((exdays==null) ? "" : ";     expires="+exdate.toUTCString());
    document.cookie=c_name + "=" + c_value;
}

function getCookie(c_name)
{
    var i,x,y,ARRcookies=document.cookie.split(";");
    for (i=0;i<ARRcookies.length;i++)
    {
        x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("="));
        y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1);
        x=x.replace(/^\s+|\s+$/g,"");
        if (x==c_name)
        {
            return unescape(y);
        }
    }
    return null;
}

Now if I shut off cookies and visit first.html on any of my desktop browsers, I get redirected and get an alert that says null as expected.

If I turn on my cookies and visit first.html on any of my desktop browsers, I get redirected and get an alert that says “test cookie” as expected.

Now if I run this on my Android tablet with cookies disabled it always returns “test cookie” in an alert. It doesn’t matter if I have cookies on or off. I have tried changing the settings, removing the cookies and cache, restarting the browser and even restarted the tablet and all with the same results.

Any help is appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T22:32:50+00:00Added an answer on May 29, 2026 at 10:32 pm

    I am having the same problem – we ended up checking cookies on the server and returning an HTTP error code if cookies were not set.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have PhoneGap app running in Android. When the app starts, it inserts approximately
I have attached an image of google maps running on android 2.3.5. How do
I have a MyTouch 3G running Android, which has been rooted. I was wondering
I am getting the IllegalAccessError while running Android instrumentation tests. This is Logcat output:
I want to get the currently running Android Emulator 's IP address through code.
We have an Android application running on Android 2.2 on the Samsung Galaxy Tab
I'm trying to use touch screen with developer board running Android 2.2. I have
I have a Archos a28 internet tablet running Android Froyo 2.2. I have a
I have recently acquired a ViewSonic G Tablet running Android 2.2 for the development
I'm looking for a way to code on a Galaxy Tab, running Android 2.2.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.