•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 391,912 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,662 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 1195 | Replies: 2
![]() |
•
•
Join Date: Feb 2007
Posts: 10
Reputation:
Rep Power: 2
Solved Threads: 0
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";
?>
*****************************
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";
?>
*****************************
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.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
Similar Threads
- session_start(): Cannot send session cache limiter - (PHP)
- session_start(): Cannot send session cookie - headers already sent by (PHP)
- Warning: session_start(): Cannot send session cache limiter - headers already sent (PHP)
- How can fix the problem? (JavaScript / DHTML / AJAX)
- ASP.NET - session objects Problem (ASP.NET)
- $_SESSION and session.auto_start do not store data (PHP)
Other Threads in the PHP Forum
- Previous Thread: PHP Sendmail Tutorial
- Next Thread: embed javascript in php


Linear Mode