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

Session

P: n/a
Does anyone know of a good PHP Session tutorial that actually explains
sessions rather than just relying on examples?

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


P: n/a
I noticed that Message-ID:
<43*****************@newsread2.news.atl.earthlink. net> from Purple Haze
contained the following:
Does anyone know of a good PHP Session tutorial that actually explains
sessions rather than just relying on examples?


What do you need to know?

Sessions are just a way of preserving data. For instance you could save
some user preferences as $_SESSION variables and use them throughout
the visit to your site.

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Jul 17 '05 #2

P: n/a
Geoff Berrow wrote:
I noticed that Message-ID:
<43*****************@newsread2.news.atl.earthlink. net> from Purple Haze
contained the following:

Does anyone know of a good PHP Session tutorial that actually explains
sessions rather than just relying on examples?

What do you need to know?

Sessions are just a way of preserving data. For instance you could save
some user preferences as $_SESSION variables and use them throughout
the visit to your site.


I posted this in another PHP newsgroup, and received the following link:

http://www.oreilly.com/catalog/learn...apter/ch08.pdf

Its an entire chapter thats actually explains cookies and sessions,
rather then using just examples, and its free :)
Jul 17 '05 #3

P: n/a
On Mon, 27 Sep 2004 16:18:08 +0000, Purple Haze wrote:
Does anyone know of a good PHP Session tutorial that actually explains
sessions rather than just relying on examples?

Thanks.


You only need to know two things to use sessions (assuming PHP V>= 4.1.x):

1) session_start()
Put this function at the start of every PHP page that you want to be in
the same "session".

2) $_SESSION
If you do (1) then everything (all of your variables) can go into (2).

Simple!

--
Jeffrey D. Silverman | je**********@jhu.edu
Website | http://www.newtnotes.com

Drop "PANTS" to reply by email

Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.