Hi

I have a problem with session_start when I click Back key in browser:

First I Run Az1.php then I press the "ok" key and I go to az2.php then I click "az3" Link
and I go to az3.php but when I click Back in my browser for back to az2.php I recive
"The page cannot be displayed" message.

*****************************
Az1.php :
<html>
<body>
<form action=az2.php method=post>
<input type=submit value=ok>
</form>
</body>
</html>
*****************************
Az2.php :
<?php
session_start();
echo "<a href=az3.php>az3</a>";
?>
*****************************
Az3.php :
<?php
echo "hello";
?>
*****************************

Recommended Answers

All 2 Replies

Probably because you submitted a form and Az2 was the results page. It will usualy come up and ask if you want to re-submit the form when yuo click the back button, but it will not re-display the result from a submitted form.

But if I remove session_start() I have not this problem

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.