Subject Re: Firebird php session handling functions?
Author Myles Wakeham
> nothing stores in $_SESSION (regardless of where that data is stored when
the
> session is closed e.g. filesystem or db) is sent to the client. the
'client
> session id' is thing stored on the client and is sent by way of a cookie
(normally)...
> everything else is stored on the server and loaded in when a session is
started
> using the session id sent as a cookie header to determine which data to
load.

> it *sounds* like you have a misguided view of what a php session is and/or
how it
> works Myles.

OK, I'm game to learn something, despite your assumptions and flame. But
you have to explain it so that I can understand it because your previous
explanation may as well be in Latin.

Let's start with the purpose of a Session. My understanding (and use) is so
that I can keep semi-persistent data created in a web page available between
the client and the PHP server, as the client moves from page to page.
Basically it's the same as some form of persistent variable storage that
moves through the client's application experience. Is this correct in your
opinion?

Second, since the session data is available and key'd through some unique
index key that PHP maintains, I can look it up at any point in my code to
see what data has been stored for the session. But if the user quits their
browser, or exceeds some timeout period, the session is lost and they must
start again. Is this correct?

Finally the main use of sessions that I understand is to try and make a
browser work like a persistent client application would, so that data isn't
lost between page requests. This data could be stored in a variety of
places other than sessions, however. Like form variables, URL GET values,
etc. A session is mainly a convenience for this. Is this correct?

Now back to the original posters question about implementing sessions with
Firebird. My point was why? If the data is available for the 'session' for
the user, why would you want to persistently store it in a database (other
than for auditing or security purposes)?

Regards,
Myles

===============================
Myles Wakeham
Director of Engineering
Tech Solutions US, Inc.
Phone (480) 451-7440
www.techsol.org