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

Learning about session cookies, URL string

P: n/a
I am learning PHP atm, and I want to learn about sessions. What I would
like to know is if sessions HAVE to appear in the URL of the web browser,
or can they appear "hidden" from view in the browsers address bar?

Dariusz
Jul 17 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Everything can be hidden :)

Jul 17 '05 #2

P: n/a
Dariusz wrote:
I am learning PHP atm, and I want to learn about sessions. What I would
like to know is if sessions HAVE to appear in the URL of the web browser,
or can they appear "hidden" from view in the browsers address bar?


Session variables do not *EVER* appear to the client anywhere (not in
the address bar, not in a (hidden) form field, not in a cookie, not in
headers (sent or received), not in HTML, ...) with the exception of the
session id.

The session id is the only session related variable that the client
knows about (and you mostly don't have to worry about it -- PHP itself
manages the session id).

--
Mail to my "From:" address is readable by all at http://www.dodgeit.com/
== ** ## !! ------------------------------------------------ !! ## ** ==
TEXT-ONLY mail to the whole "Reply-To:" address ("My Name" <my@address>)
may bypass my spam filter. If it does, I may reply from another address!
Jul 17 '05 #3

P: n/a

Dariusz wrote:
I am learning PHP atm, and I want to learn about sessions. What I would like to know is if sessions HAVE to appear in the URL of the web browser, or can they appear "hidden" from view in the browsers address bar?

Dariusz


I think you might be confusing sessions with GET and POST. Sessions
typically use cookies (although they don't have to) and are normally
not visible in the URL as they can carry fairly large amounts of data.
Post an example of the code you are using and we might be able to help
more exactly...

Jul 17 '05 #4

P: n/a
In article <11*********************@f14g2000cwb.googlegroups. com>, "EnglishMan" <ad*********@gmail.com> wrote:
I think you might be confusing sessions with GET and POST. Sessions
typically use cookies (although they don't have to) and are normally
not visible in the URL as they can carry fairly large amounts of data.
Post an example of the code you are using and we might be able to help
more exactly...


No, I mis-wrote... and Pedro just posted correctly - I was thinking of
session ID's. Oops.

I know about POST and GET, already used them.

Dariusz
Jul 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.