Welcome Guest, Not a member yet? Register   Sign In
Session redirect
#1

[eluser]rainfall[/eluser]
Hi

I am working with simple session pages.
I used below code to prevent caching when user press the back button ..
Code:
<?php
header("Expires: Thu, 19 Nov 1981 08:52:00 GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");

?>

Now I want to redirect to my login page when user press back button in browser .

How to do it ??? i tried few things but not working ...
#2

[eluser]InsiteFX[/eluser]
Code:
<?php
header("Location: http://www.example.com/"); /* Redirect browser */

/* Make sure that code below does not get executed when we redirect. */
exit;
?>




Theme © iAndrew 2016 - Forum software by © MyBB