Results 1 to 2 of 2

Thread: session_start(); $link_to = not working

  1. #1
    erik1185 Guest

    session_start(); $link_to = not working

    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.

    http://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

  2. #2
    Join Date
    Apr 2009
    Location
    The toon
    Posts
    1,225
    echo out the session to see if its being set

Similar Threads

  1. .htaccess not working
    By leaaa in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 1
    Last Post: 07 May 2009, 06:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •