Table of Contents

session_is_new

WMPRO, WMMINI >= 1.0 WMMEGA FW >= 2.0

Check if a session was just initiated

Description

int session_is_new ( )

This is only applicable for HTTP initiated scripts.

This is supposed to return a non-zero value if the session has just been created (first time the page is loaded from a browser session). However, at the time of this writing we're not sure if this works, and it needs to be tested …

Parameters

None

Return Values

Non-zero if the session was just initiated

See Also

session_destroy() - Clear the current session's data

session_start() - Initiate a new session and send the cookie data for it