Results 1 to 3 of 3

Thread: Redirect without changing url ?

  1. #1

    Thread Starter
    Frenzied Member Jmacp's Avatar
    Join Date
    Jul 2003
    Location
    UK
    Posts
    1,959

    Redirect without changing url ?

    If somebody logs in on say myserver/login.php, then if login is ok there are redirected to their page say myserver/joe.php

    Well how do i have it so it goes,

    login.php--->main.php but still on their page, so there could be 10 users, each with their own page but all they see is main.php, in other words i want to stop direct access to an individual page, if it was just myserver/joe.php then you could directly acces that page. I know you cause sesions and cookies to check if the've logged in or not but how do you hide the url?

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Redirect without changing url ?

    I'm confused

    Can you explain in steps what you want the result to be when the user does exactly what?

  3. #3
    <?="Moderator"?> john tindell's Avatar
    Join Date
    Jan 2002
    Location
    Brighton, UK
    Posts
    1,099

    Re: Redirect without changing url ?

    Well why dont you just check the HTTP_REFER in the joe.php file and if it hasnt come from login.php. Alternativly you could just use include in the main.php file to include the current users file. Hope that makes sense

Posting Permissions

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



Click Here to Expand Forum to Full Width