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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T05:13:26+00:00 2026-05-23T05:13:26+00:00

Is it possible to set session variables or cookies that will exist across all

  • 0

Is it possible to set session variables or cookies that will exist across all tabs?

I thought firefox kept session across all existing tabs, however im testing and finding that only the current tab where the session was originally set is the session available.

Thanks!

EDIT:

Tab 1:

setcookie("testcookie", "something", time()+(60*60*24*365));

Tab 2:

print_r($_COOKIE['testcookie']);

Tab 2 only prints an empty array. If I move this to tab 1, it will print out the cookie.

  • 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-23T05:13:27+00:00Added an answer on May 23, 2026 at 5:13 am

    Cookies are always sent to the server providing that:

    • The domain matches (including sub-domain).
    • The path matches (cookies can be assigned to specific path — assigning them to root means the entire domain).
    • The port matches.
    • The protocol (http/https) matches if you set the cookie as secure.

    As long as all those things are true, you should have your cookie / cookie based session on all tabs. You will need to refresh the tab in order to see any effects of the cookie (including seeing it in Javascript of Firefox extensions).

    If all those are true and you are still not seeing your cookie on all tabs then you have a lot of debugging to do… that is not standard behavior.

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

Sidebar

Related Questions

I see that in PL/SQL it is possible to set the session state of
Is it possible to set session variables from javascript?
Is it possible to set the position of the tabs to be at the
I am wondering whether its possible to change/set/delete my session variable AS A USER.
I'm using Connect.js and the connect-session module for managing session cookies. I noticed that
Is it possible to be notified in code when a session variable changes? Will
As the title states, I have a session variable that is set during a
Possible Duplicate: PHP Can a client ever set $_SESSION variables? What I'd like to
Possible Duplicate: Errors for changing variables content depending on session status Hello! I am
I wanted to know if it was possible to keep the Session variable thought

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.