470,833 Members | 1,251 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,833 developers. It's quick & easy.

Session

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

Thanks.
Jul 17 '05 #1
3 2053
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
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
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.

Similar topics

2 posts views Thread by Damien | last post: by
1 post views Thread by mudge | last post: by
5 posts views Thread by Abhilash.k.m | last post: by
reply views Thread by joseph conrad | last post: by
14 posts views Thread by aroraamit81 | last post: by
7 posts views Thread by aroraamit81 | last post: by
reply views Thread by TRB_NV | last post: by
1 post views Thread by Santosh | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.