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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T21:31:59+00:00 2026-05-14T21:31:59+00:00

Is it possible to read cookie expiration time with php ? When I print_r($_COOKIE)

  • 0

Is it possible to read cookie expiration time with php ?
When I print_r($_COOKIE) it outputs:

Array
(
    [PHPSESSID] => 0afef6bac83a7db8abd9f87b76838d7f
    [userId] => 1232
    [userEmail] => user@email.com
    [firstName] => user
    [lastName] => user
)

So I think $_COOKIE don’t have the expiration time, is it possible with some other function?

  • 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-14T21:31:59+00:00Added an answer on May 14, 2026 at 9:31 pm

    Only name and value are sent to the server so no other cookie data is available.

    You can simply re-set the cookie if you want to extend its duration – that’s just a few bytes more in the response so it doesn’t matter at all.

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

Sidebar

Related Questions

My PHP is unable to read a cookie like this: 1010081-COP-9-20-20110606172032 echo $_COOKIE[SubmCookie]; It
Is it possible to read cookie expiration date using JavaScript? If yes, how? If
Is it possible to create a cookie with javascript and then read it with
Possible Duplicate: PHP Can't read cookies? I am adding a log in and remember
I know that it is possible read and write data from mongodb via hadoop.
Possible Duplicate: Read Post Data submitted to ASP.Net Form I have a google checkout
Is possible to read from a txt file in loop like this? files names:
Is it possible to read alphanumeric characters only from the given input line ignoring
Is it possible to read intermittently-sent data through a named pipe using redirection to
Is it possible to read WPF ResourceDictionaries from WinForms? If yes, how?

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.