PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
my problem is this...
after successful user login in login.php, i redirected the page to the index.php along with the session and all those stuff. what i can't get is how to redirect the page in index.php even if the user clicked the back button in the web browser and the user has not yet logged out??? in my login.php, there is a script that goes like this
1) Are you calling session_start()?
2) Use full http paths in your header()
3) Call exit() after header, to prevent any more code from being executed
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
<form action="<?php echo(PHP_SELF)?>">
input UN
input PW
</form>
after logging in, user is redirected to the index.php it should be that when i click the "back" button of the web browser, the Login.php page still shows up rather than redirecting it to the index.php page because the user did not log out. Is there a way to solve this?
Scottayy | Please use the [ php ] and [ syntax ] tags when posting code.
You're setting $_SESSION['UN'] and then checking for $_SESSION['username'].
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.