|
-
Mar 12th, 2006, 09:51 AM
#1
Thread Starter
Frenzied Member
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?
-
Mar 12th, 2006, 09:58 AM
#2
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?
-
Mar 12th, 2006, 10:04 AM
#3
<?="Moderator"?>
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|