By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,722 Members | 1,174 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,722 IT Pros & Developers. It's quick & easy.

session and back

P: n/a
I'm planning to modify my site from "POST" to "SESSION"....This is because
many times, when clicking "back" on the browser, the page has to be
refreshed, and I absolutely want to avoid this, also I don't want to use
"GET" variables, as they are visible in the URL and I want to avoid this
(POST are also visible but not for everyone. session would be hidden)

If I use Session variables, will this fix the problem with "back" button ?
or may I have the same problem ?

Thanks for help.

Cheers.

Bob
Jul 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
"Bob Bedford" <be******@YouKnowWhatToDoHerehotmail.com> wrote in
news:41***********************@news.sunrise.ch:
If I use Session variables, will this fix the problem with "back"
button ? or may I have the same problem ?


page 1 could check for the existance of session variables, which wont be
there the first time around, so they will be blank. post to the second page
normally. put the post variables into sessions, named as you want them.
when going back to the first page, it will check for the existance of
sessions again, and they will be there.

Ive never used sessions directly in a form. actually I didnt know it could
be done.
Jul 17 '05 #2

P: n/a

"Theo" <in*****@noemail.com> wrote in message
news:Xn*************************@216.168.3.44...
"Bob Bedford" <be******@YouKnowWhatToDoHerehotmail.com> wrote in
news:41***********************@news.sunrise.ch:
If I use Session variables, will this fix the problem with "back"
button ? or may I have the same problem ?


page 1 could check for the existance of session variables, which wont be
there the first time around, so they will be blank. post to the second
page
normally. put the post variables into sessions, named as you want them.
when going back to the first page, it will check for the existance of
sessions again, and they will be there.

Ive never used sessions directly in a form. actually I didnt know it could
be done.


You cannot use sessions in a form, but you can use session data to create a
form. Session data exists on the server only, and what is sent to the client
browser is an HTML document which may contain values obtained from the
session data.

If you are having problems with the BACK button ten read
http://www.tonymarston.co.uk/php-mys...ttonblues.html

--
Tony Marston

http://www.tonymarston.net

Jul 17 '05 #3

P: n/a
"Tony Marston" <to**@NOSPAM.demon.co.uk> wrote in
news:cl*******************@news.demon.co.uk:
You cannot use sessions in a form, but you can use session data to
create a form. Session data exists on the server only, and what is
sent to the client browser is an HTML document which may contain
values obtained from the session data.


thats what I thought, but there have been enough undocumented things to
make me go 'hmmmmm'.
Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.