04-04-2008, 11:49 PM
|
#10 (permalink)
|
|
La Vida es Sueño
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
|
They should be declared static if you're accessing them like so, yes. I will wait until you've further tested that, however, before we go any further so we remain on the same page.
As for suppressing warnings of session_start, I do this because of the following addition:
Quote:
|
As of now, calling session_start() while the session has already been started will result in an error of level E_NOTICE. Also, the second session start will simply be ignored.
|
Thus suppressing it will ensure no notice is shown, but will nevertheless guarantee that a session is started. However, with that said, programmers should really be ensuring it is started themselves, and so those 2 error suppressing lines -- 1 in each function, should be removed when in the capable hands of a competent programmer.
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
|
|
|