RE: [PHP] sessions and browser back[Scanned]
| From: | Michael Egan | Date: | Wed, 25 Jun 2003 13:44:19 +0000 |
| Subject: | RE: [PHP] sessions and browser back[Scanned] | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-152768@lists.php.net to get a copy of this message | ||
Bibhas,
I'm sure I've read somewhere that this is a deliberate security feature with using
sessions - i.e. you can't view contents of form fields by using the back button on your
browser.
Couldn't you use JavaScript to ensure that the data is validated on the client side before the
form is submitted?
Regards,
Michael Egan
-----Original Message-----
From: Bibhas Kumar Samanta [mailto:bks@cal.interrasystems.com]
Sent: 25 June 2003 14:26
To: php-general@lists.php.net
Subject: [PHP] sessions and browser back[Scanned]
Hi,
I am trying to create restricted pages for my php/mysql/apache
server with sessions and passing session varibales to other pages for
validation.
Eventually I am doinng session_start() at the begining and
checking whether logged in user is authorised to use this page
by a routine.
Now problem is, if filled in data in the form is incorrect, the forms
gives an error. But when I press browser BACK button to get the
filled in form , the form seems to get reset with _no_ data.
When I try without session_start() at the begining of form , things
seem to behave normally.
Does session_start() reset the form and I guess browser should
have returned be by fiiled in page from cache ?
Please help
-Bibhas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php