Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Web Design (WordPress, Joomla, etc.) $link_to = $_SESSION not working

  • $link_to = $_SESSION not working

    Posted by Erik Hermesman on October 14, 2009 at 11:35 pm

    I am trying to have my users go to there own profile page. I am using this code in php to do it.

    session_start();
    $link_to = $_SESSION[‘username’].”_page.php”;
    header(“Location: $link_to”);

    The problem is that the result is bringing me to a page that looks like this.

    https://www.domainname.com/_page.php.

    It doesnt put the username infront of the _page

    What am I doing wrong and is there another way to get this accomplished?

    Thanks.

    Mike Smith replied 16 years, 6 months ago 2 Members · 1 Reply
  • 1 Reply
  • Mike Smith

    October 15, 2009 at 9:35 am

    How did you assign the username variable to the $_SESSION variable ..?

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy