Jump to content

Setting Cooking and Using it.


Dethman

Recommended Posts

Ive tested this and it did not work can someone please fill me in on why it did not work?


<html><!-- #BeginTemplate "/Templates/template.dwt" -->
<head>
<!-- #BeginEditable "doctitle" -->
<title>Pro Flo X-Treme Clean, Inc. - SET Administration Cookie.</title>
<!-- #EndEditable -->
<link href="styles.css" rel="stylesheet" type="text/css">
<script type="text/javascript">

var cookie_date = new Date ( 2012, 01, 01 );
document.cookie = "administrator=yes;
                   firstName=Brian;
                   lastName=Flores;
                   [email protected];
                  expires=" + cookie_date.toGMTString();
                  
                  var cookie = document.cookie;

                 
                 if( administrator ){
				location.href="index.htm";
			}

</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#06780e">

</body>
<!-- #EndTemplate --></html>


Link to comment
https://forums.phpfreaks.com/topic/175956-setting-cooking-and-using-it/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.