newbie8899 Posted April 29, 2008 Share Posted April 29, 2008 Hi all, i start my php page with session_start(); I have a form using 'POST' and send the page to another page. But when i click back button, all the data i have entered before all lost. I tried to change the 'POST' to 'GET', but the result still the same, it still give me the empty fields when i click the back button. Anyone please help. Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/103368-php-session_start-problem/ Share on other sites More sharing options...
conker87 Posted April 29, 2008 Share Posted April 29, 2008 I don't think that's anything to do with the sessions, I think thats more browser based. Link to comment https://forums.phpfreaks.com/topic/103368-php-session_start-problem/#findComment-529418 Share on other sites More sharing options...
bobinindia Posted April 29, 2008 Share Posted April 29, 2008 on the page processing the form you can put $_session['whatever'] = $_POST['whatever']; Then when you went back you could echo $_session['whatever']; Why might you want to do that?? ??? Link to comment https://forums.phpfreaks.com/topic/103368-php-session_start-problem/#findComment-529426 Share on other sites More sharing options...
conker87 Posted April 29, 2008 Share Posted April 29, 2008 Text saved in fields like that is the browser being clever. I'm pretty sure it's nothing to do with the server side. Link to comment https://forums.phpfreaks.com/topic/103368-php-session_start-problem/#findComment-529428 Share on other sites More sharing options...
haku Posted April 29, 2008 Share Posted April 29, 2008 I believe (though I could be wrong) its dependent on the browser caching the page. This can be set with php headers, though I have never done it so I can't give any help with it. Link to comment https://forums.phpfreaks.com/topic/103368-php-session_start-problem/#findComment-529431 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.