Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

305
Views
$_SESSION variables are not working on second page

I have created a session at my first page:

<?php 
  $youtubeID = get_sub_field('youtube_id'); 
  $withlastSlash = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
  $withoutSlash =  substr_replace($withlastSlash, "", -1);
  $howtoURL = $withoutSlash . "?a=" . $youtubeID;
  session_start();
  $_SESSION['howtovidsurl'] = $howtoURL;
?> 

I have then called the session variables in my second page

<?php
    session_start(); 
    echo $_SESSION['howtovidsurl']; 
?> 

But nothing is getting echoed out on the second page.

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!