Re: Session (maybe cookies)
| From: | Matt Matijevich | Date: | Tue, 03 Feb 2004 18:56:49 +0000 |
| Subject: | Re: Session (maybe cookies) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-176714@lists.php.net to get a copy of this message | ||
<snip>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>
<body>
<?php session_start();
echo(session_id());
?>
</body>
</html>
</snip>
Take a look at the manual for sessions
session_start() has to be the first thing called
<?php session_start();
echo(session_id());
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>
<body>
</body>
</html>