🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
    • Showing results for:
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions
    • Close
  • Johannes Chitura
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Johannes Chitura
    PHP Development Techdegree Student 8,907 Points

    I am having a difficult time grasping what this question is asking?

    Posted on Mar 10, 2020 by Johannes Chitura
    .a{fill-rule:evenodd;}techdegree
    Johannes Chitura
    PHP Development Techdegree Student 8,907 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    1 Answer

  • Samuel Jegede
    Samuel Jegede
    7,053 Points

    If the variables are not set, redirect to play.php with the p parameter set to the first missing session variable

    Posted on Jan 30, 2020 by Samuel Jegede
    Samuel Jegede
    7,053 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    1 Answer

  • Unsubscribed User
    Unsubscribed User
    8,428 Points

    How to redirect without header();

    Posted on Oct 9, 2019 by Unsubscribed User
    Unsubscribed User
    8,428 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    0 Answers

  • Abson Chifodya
    Abson Chifodya
    11,817 Points

    Use the trim function to remove blank spaces

    Posted on Apr 29, 2019 by Abson Chifodya
    Abson Chifodya
    11,817 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    1 Answer

  • James Katarikawe
    James Katarikawe
    3,769 Points

    I am trying to check if the $_SESSION['word'] array is being set before checking individual values. Where's the problem

    Posted on Mar 16, 2019 by James Katarikawe
    James Katarikawe
    3,769 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    0 Answers

  • Yoel Dovid Cohen
    Yoel Dovid Cohen
    13,405 Points

    how do i do this

    Posted on Feb 14, 2019 by Yoel Dovid Cohen
    Yoel Dovid Cohen
    13,405 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    1 Answer

  • Victor Reyna
    Victor Reyna
    14,263 Points

    I think this challenge isn't clear, or is confusing

    Posted on Jun 25, 2018 by Victor Reyna
    Victor Reyna
    14,263 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    0 Answers

  • Robert Cooper
    Robert Cooper
    22,704 Points

    Unable to verify if string is empty using trim function

    Posted on Dec 12, 2017 by Robert Cooper
    Robert Cooper
    22,704 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    0 Answers

  • Fabian Pijpers
    PLUS
    Fabian Pijpers
    Courses Plus Student 41,372 Points

    I do not know what is wrong with code? Does anybody see the issue?

    Posted on Dec 10, 2017 by Fabian Pijpers
    Fabian Pijpers
    Courses Plus Student 41,372 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    4 Answers

  • Kristofer Doman
    Kristofer Doman
    18,307 Points

    These poorly designed tests are going to be the end of me

    Posted on Oct 24, 2017 by Kristofer Doman
    Kristofer Doman
    18,307 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    1 Answer

  • tawanda chikwavaire
    tawanda chikwavaire
    7,613 Points

    Use the trim function to remove blank spaces and verify that the value is not an EMPTY word.

    Posted on Sep 1, 2017 by tawanda chikwavaire
    tawanda chikwavaire
    7,613 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    2 Answers

  • tawanda chikwavaire
    tawanda chikwavaire
    7,613 Points

    trim function to remove blank spaces and verify that the value is not an EMPTY word

    Posted on Aug 29, 2017 by tawanda chikwavaire
    tawanda chikwavaire
    7,613 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    3 Answers

  • Julien Steel
    Julien Steel
    10,790 Points

    Redirect to play.php when $_SESSION['word'] is not set. What do I do wrong?

    Posted on Aug 2, 2017 by Julien Steel
    Julien Steel
    10,790 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    2 Answers

  • Shubham Modi
    Shubham Modi
    662 Points

    HOW DO I SOLVE THIS?

    Posted on Jul 31, 2017 by Shubham Modi
    Shubham Modi
    662 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    0 Answers

  • Thomas Morling
    Thomas Morling
    12,754 Points

    Can't get this to work Setting Session variables

    Posted on Jun 21, 2017 by Thomas Morling
    Thomas Morling
    12,754 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    1 Answer

  • Thomas Morling
    Thomas Morling
    12,754 Points

    Stumped Where do I begin? Setting Session Variables Challenge

    Posted on Jun 20, 2017 by Thomas Morling
    Thomas Morling
    12,754 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    2 Answers

  • Dylan Martin
    Dylan Martin
    10,399 Points

    is using header("location: whatever.php?p=[$i]") not a valid way to redirect?

    Posted on Jun 11, 2017 by Dylan Martin
    Dylan Martin
    10,399 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    1 Answer

  • Andrew mwendo
    Andrew mwendo
    5,712 Points

    please help guys my last challenge

    Posted on May 11, 2017 by Andrew mwendo
    Andrew mwendo
    5,712 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    0 Answers

  • Andrew mwendo
    Andrew mwendo
    5,712 Points

    please help guys my last challenge

    Posted on May 11, 2017 by Andrew mwendo
    Andrew mwendo
    5,712 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    0 Answers

  • Andrew mwendo
    Andrew mwendo
    5,712 Points

    help with trimming guys

    Posted on May 10, 2017 by Andrew mwendo
    Andrew mwendo
    5,712 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    3 Answers

  • Andrew mwendo
    Andrew mwendo
    5,712 Points

    help guys my last challenge

    Posted on May 10, 2017 by Andrew mwendo
    Andrew mwendo
    5,712 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    4 Answers

  • Brandon Mathis
    Brandon Mathis
    11,141 Points

    looping through the $_SESSION['word'] array to search for an empty value...

    Posted on May 8, 2017 by Brandon Mathis
    Brandon Mathis
    11,141 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    0 Answers

  • Andrew mwendo
    Andrew mwendo
    5,712 Points

    can you guys help

    Posted on Apr 28, 2017 by Andrew mwendo
    Andrew mwendo
    5,712 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    1 Answer

  • Andrew mwendo
    Andrew mwendo
    5,712 Points

    help i am confused

    Posted on Apr 26, 2017 by Andrew mwendo
    Andrew mwendo
    5,712 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    2 Answers

  • Andrew mwendo
    Andrew mwendo
    5,712 Points

    please help Check that each of the required session variables are not set before attempting to write the stor

    Posted on Apr 26, 2017 by Andrew mwendo
    Andrew mwendo
    5,712 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    6 Answers

  • Andrew Blackwell
    Andrew Blackwell
    13,264 Points

    This feels impossible to solve

    Posted on Apr 6, 2017 by Andrew Blackwell
    Andrew Blackwell
    13,264 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    5 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.