Joolz wrote: > I would like something like > > if (!session_is_started()) { // note: this function doesn't > exist > session_start(); > } Hi, this is not really a postgres-related question, but what the heck. Use session_id to detect if a session is started or not. See: http://hr2.php.net/manual/en/function.session-id.php for an example (user-contributed, at the bottom of the page).