|
Posted by #2pencil on 07/12/07 19:10
login.php
<?
session_start();
$expiry = 60*60; //1hr in seconds
setcookie(session_name(), session_id(), time()+$expiry, "/");
?>
.....
.....
.....
else //FORM SUBMITTED
It looks as if you close your php code block & then never start it
again. Was this part not pasted, or is this how your code actually
reads? Also, you should start your php code block with <?php rather
than just <?.
-#2pencil-
http://www.akroncdnr.com
Navigation:
[Reply to this message]
|