Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

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


Re: Session

On Mon, 27 Sep 2004 16:18:08 +0000, Purple Haze wrote:

Quoted text here. Click to load it

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

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


Jeffrey D. Silverman |
             Website |

Drop "PANTS" to reply by email

Re: Session

I noticed that Message-ID:
contained the following:

Quoted text here. Click to load it

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 /

Re: Session

Geoff Berrow wrote:
Quoted text here. Click to load it

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

Its an entire chapter thats actually explains cookies and sessions,
rather then using just examples, and its free :)

Site Timeline