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 8456713
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:37:03+00:00 2026-06-10T12:37:03+00:00

I know the method of storing the data in php. But this method doesn’t

  • 0

I know the method of storing the data in php.
But this method doesn’t work when I am storing a long array in PHP.
That array has about 3000 values (82382 characters).

I am doing this:

$encoded_db_data = base64_encode(serialize($query_result));
setcookie("db_select_result", '$encoded_db_data');

but db_select_result is printing blank (no value). How can i solve this problem?

  • 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-06-10T12:37:04+00:00Added an answer on June 10, 2026 at 12:37 pm

    A user agent MAY ignore a received cookie in its entirety. For
    example, the user agent might wish to block receiving cookies
    from “third-party” responses or the user agent might not wish to
    store cookies that exceed some size.

    From: http://www.faqs.org/rfcs/rfc6265.html

    Consider the next options:

    1.Split the array’s data and put it in more than one cookie.

    2.Use sessions (Unlike cookies they have “short-life”) [http://www.php.net/manual/en/session.examples.basic.php]

    3.Store that data in a Database with a “unique key” , then set a cookie with that
    unique key so you’ll be able to identify which data to pull from the database.

    4.Use less data from your array and try to put it in a cookie.

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

Sidebar

Related Questions

I know this has been asked a few times but please bear with me.
My html of form is like this <form id=form method=post action=func.php> <table> <!--- DATA
I know this question has been asked many times before, but I haven't found
I know the method below isn't meant to work with any Entity, and its
Do you know any method to optimize this HTML Code to IE6 or 7
Some of you may know the method in Ruby that allows you to reverse
I tried to solve problems from Project Euler. I know my method would work
We all know of sleep method available in java threads.. I understand that the
I'm currently designing a website that would involve storing a long list of names
I'm trying to send an array to a PHP script via POST method. First

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.