alpachino wrote:hi guys. i am using session_start(); at every page.
but hw can i determine if session has been not initialised
& should start new session?
as I recall it,
there is some code (trick) for this in PHP Manual
.. see readers comments at [man]session_start/man
.... or was it some of the other session_functions .. maybe
This can be useful to avoid messages like:
E_NOTICE: session already started at line nn in mypage.php
There is defintely a way to check this.
I am almost 100% NogDog remembers howto. And can tell us.
Best is of course, if you can arrange your scripts, so that this will never happen.
That you use session_start() 2 times,
when session was already started some other page included.
I agree this can be very tricky sometimes,
especially when using many conditional includes / require( 'file.php')
regars 🙂
halojoy