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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T11:03:00+00:00 2026-05-31T11:03:00+00:00

print_r($_SESSION); gives me this: [post] => [verify] => 3bae5359ea60d7f00d553ae5d091ae4b [token] => token is set,

  • 0
print_r($_SESSION);

gives me this:

[post] =>
[verify] => 3bae5359ea60d7f00d553ae5d091ae4b
[token] => 

token is set, but null, right? When I implement this:

if (!isset($_SESSION['token'])) {
    die("Token not set");
}

The script dies. Why is this happening?

  • 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-31T11:03:01+00:00Added an answer on May 31, 2026 at 11:03 am

    From the documentation –

    bool isset ( mixed $var [, mixed $… ] )

    isset determines if a variable is set and is not NULL

    Also –

    Return Values: Returns TRUE if var exists and has value other than
    NULL, FALSE otherwise.

    So, if the supplied argument contains NULL or if it simply doesn’t exist, then isset will return FALSE. This is exactly what is happening with your script and as a result, it dies.

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

Sidebar

Related Questions

This is the set of result from my database print_r($plan); Array ( [0] =>
So This part of my code: print_r($_SESSION['T']); $T = array_values($data2); print_r($_SESSION['T']); Outputs this: Array
I made an PHP OOP Cart Class like this print_r($_SESSION[cart]); the result is: Array
Strange issue. This is index.php: session_start(); print_r($_COOKIE); print_r($_SESSION); This is logout.php: session_destroy(); $_COOKIE['key'] =
I have a PHP Session variable set: $_SESSION['token']=$_POST['token']; on newOrder.php . Also set is
let's say i have $_SESSION['cart']; when I print this echo <pre>,print_r($_SESSION['cart']),</pre>; it will show
I find print_r in PHP extremely useful, but wonder if there is anything remotely
ive got an object that looks like this with print_r(): SimpleDOM Object ( [0]
$jj_post is the array output debug via print_r() . This variable is an array
So what I'm looking for here is something like PHP's print_r function. This is

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.