473,386 Members | 1,873 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Learning about session cookies, URL string

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
4 1717
Everything can be hidden :)

Jul 17 '05 #2
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

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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

30
by: Robert Tweed | last post by:
Does anyone know a good resource discussing the issues involved in session theft? I've read a couple, but none that really address the problem apart from acknowledging that it is a problem; you...
2
by: wellnesseducation | last post by:
I am trying to get session stating working with certain specifications right now, and am running into an issue I can't peg. I currently have session stating running have changed my web.config file...
9
by: Jimmy Junatas | last post by:
When we open a window (using client-side jscript ie. window.open("/Site/Popup.aspx?...",...)) from Page1.aspx, the called page Popup.aspx does not have access to the Session variables present in...
9
by: Schraalhans Keukenmeester | last post by:
I am stomped with the following problem: I have a script start.php and a second script proceed.php Relevant (and working) sections of the code: start.php <?PHP start_session();
13
by: Goofy | last post by:
Does anyone know how I can kill a session by session ID ? -- Goofy
11
by: Glenn | last post by:
Hi I've been experimenting with managing state using the Session object. I've created a simple WS with a couple of methods, one which sets a string value, another that retrieves it. Each...
3
by: Sylvie | last post by:
When redirecting a page, For example CASE 1; Response.Redirect("Page.aspx?Paramval=123"); in Page.aspx
0
by: krishna81m | last post by:
Could some one please explain why the session is not being maintained when I am doing a forward in a servlet after setting a cookie. I am even unable to set session attributes or parameters and...
2
by: StanB | last post by:
I came across this weird problem: 1. Session state stops working after the app is deployed to another server because IE does not accept cookies. 2. It works if cookieless="true" in the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.