problem with session_start

Reply

Join Date: Feb 2007
Posts: 13
Reputation: dks1383 is an unknown quantity at this point 
Solved Threads: 0
dks1383 dks1383 is offline Offline
Newbie Poster

problem with session_start

 
0
  #1
Feb 13th, 2007
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";
?>
*****************************
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 57
Reputation: GliderPilot is an unknown quantity at this point 
Solved Threads: 2
GliderPilot's Avatar
GliderPilot GliderPilot is offline Offline
Junior Poster in Training

Re: problem with session_start

 
0
  #2
Feb 13th, 2007
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.
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 13
Reputation: dks1383 is an unknown quantity at this point 
Solved Threads: 0
dks1383 dks1383 is offline Offline
Newbie Poster

Re: problem with session_start

 
0
  #3
Feb 17th, 2007
But if I remove session_start() I have not this problem
Last edited by dks1383; Feb 17th, 2007 at 11:22 am.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC