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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T09:56:01+00:00 2026-05-25T09:56:01+00:00

I have previously asked about life time of objects on stackoverflow and came to

  • 0

I have previously asked about life time of objects on stackoverflow and came to know that they exist until the end of script, i tested it and it was true. But in case of wordpress the Objects life for a longer time. Like the user object, i can access it on any page and on any script even if it is not instantiated on that particular script.

What is the reason behind that?

  • 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-25T09:56:01+00:00Added an answer on May 25, 2026 at 9:56 am

    The reason is, that in fact you have two objects. The data of the user comes from the database and if the user is logged in, the API functions of wordpress will give you an object with the data from the database.

    As the data from the database has not changed, you can get a quadrillion user objects on a quadrillion pages. However each of these objects lives only for one request or until unset.

    To have user objects on any page available, wordpress is storing the data of each user into the database. The database keeps the data for a longer time.

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

Sidebar

Related Questions

I previously asked about what Mixins were, and have begun to get the gist
Previously I've asked about inserting a column into a dataset . I now have
When I asked this previously I should have mentioned that it's particularly a light-weight
I just got Delphi 2009 and have previously read some articles about modifications that
So .... There are obviously many questions that all have been asked about Singletons,
I have previously asked about the proper way of accessing member variables present in
I've previously asked a question of about Delegates does anyone have a must have
I've previously asked a question about an issue I have been experiencing with CSharpOptParse
Before you say anything, I have read the previously asked questions about this issue.
Ok, so I previously asked a question asking about my options, I have looked

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.