Connecting Tech Pros Worldwide Help | Site Map

Learning about session cookies, URL string

Dariusz
Guest
 
Posts: n/a
#1: Jul 17 '05
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
Steve
Guest
 
Posts: n/a
#2: Jul 17 '05

re: Learning about session cookies, URL string


Everything can be hidden :)

Pedro Graca
Guest
 
Posts: n/a
#3: Jul 17 '05

re: Learning about session cookies, URL string


Dariusz wrote:[color=blue]
> 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?[/color]

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!
EnglishMan
Guest
 
Posts: n/a
#4: Jul 17 '05

re: Learning about session cookies, URL string



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

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...

Dariusz
Guest
 
Posts: n/a
#5: Jul 17 '05

re: Learning about session cookies, URL string


In article <1102625756.491802.56330@f14g2000cwb.googlegroups. com>, "EnglishMan" <adam.coppin@gmail.com> wrote:[color=blue]
>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...[/color]

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
Closed Thread