note 8091 deleted from function.session-name by didou

From: Date: Sun, 18 May 2003 03:54:30 +0000
Subject: note 8091 deleted from function.session-name by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-48395@lists.php.net to get a copy of this message
Note Submitter: slackl@hycube.ru ---- Step 1: Setting a name for our session. session_name("anothersession"); Step 2: Starting Session. session_start(); Step 3: We need X variables.... session_register("varX"); session_register("varX1"); session_register("varX2"); Step 4: Setting values for session vars. $HTTP_SESSION_VARS["varX"]="bla-bla"; ..................................... $HTTP_SESSION_VARS["varX2"]="value"; Step 5: Referring a session info to another PHP. printf("<A HREF=\"somefile.php?%s=%s\">text</A>",session_name();session_id());

« previous php.notes (#48395) next »