User Tools

Site Tools


uphp:functions:session_start

This is an old revision of the document!


session_start()

Start a new session and clear any existing session information. This generates a random session ID and passes it as a cookie back to the browser, so session_start needs to be called before any other data is sent out/

You can then set session variables through the global $_SESSION array.

For example:

$_SESSION['name']=“tom”;

uphp/functions/session_start.1494677948.txt.gz · Last modified: 2021/09/13 05:56 (external edit)