User Name Password Register
DaniWeb IT Discussion Community
All
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
Reply
Join Date: Feb 2007
Posts: 10
Reputation: dks1383 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
dks1383 dks1383 is offline Offline
Newbie Poster

problem with session_start

  #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";
?>
*****************************
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Sep 2006
Location: Canada
Posts: 55
Reputation: GliderPilot is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 2
GliderPilot's Avatar
GliderPilot GliderPilot is offline Offline
Junior Poster in Training

Re: problem with session_start

  #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  
Join Date: Feb 2007
Posts: 10
Reputation: dks1383 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
dks1383 dks1383 is offline Offline
Newbie Poster

Re: problem with session_start

  #3  
Feb 17th, 2007
But if I remove session_start() I have not this problem
Last edited by dks1383 : Feb 17th, 2007 at 10:22 am.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb PHP Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the PHP Forum

All times are GMT -4. The time now is 7:50 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC