Ya..
<?php session_start(); ?>
<html>
<head>
<!-- TemplateBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- TemplateEndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
...
So the only PHP code is the first line. The rest is my template code. Now if I save this in Macromedia Dreamweaver MX... I get the following warning:
"You have added or changed code outside the <html> tag. This change will not be copied to documents based on the template unless you insert this tag in the <head> section of your template:
<!-- TemplateInfo codeOutsideHTMLIsLocked="true" -->
Alas, I did what it suggested, put the php session code under the header of the template, and got the same Cannot send session cookie error.
-Pizzaman