How to create, name and start PHP sessions
| From: | Phil Powell | Date: | Thu, 18 Apr 2002 09:42:43 +0000 |
| Subject: | How to create, name and start PHP sessions | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-93501@lists.php.net to get a copy of this message | ||
Will the following lines set up a session by the name of "hasLoggedIn" with
HTTP_SESSION_VARS["username"]?
$stuff = session_name("hasLoggedIn");
$HTTP_SESSION_VARS["username"] = $username;
session_start();
I am trying to create a page that sets a session variable upon successful
login, problem is, the session_name() never changes it always remains the
default PHPSESSID what am I doing wrong now?
I fixed the problem with multiple files, that was bizarre!
Thanx
Phil