Do you have a question? Post it now! No Registration Necessary. Now with pictures!
June 24, 2011, 3:45 pm
rate this thread
Re: library using $_SESSION
I would say that you should require the user to issue the
session_start() call. A couple of reasons:
1. Your library may not be included at the start of the page, and
session_start() will fail if ANY output is produced before the call.
2. The user may issue his/her own session_start() call, in which case
the second call (whichever it may be) will fail.
Libraries shouldn't do anything other than what they are told to do with
no side effects; in this case your library hasn't been told to issue the
Remove the "x" from my email address
JDS Computer Training Corp.