>               $session_time = $current_time - $_SESSION('timestamp');
>                       echo "session time = $session_time seconds.<br>";
>
>The output to the browser (Safari) is as follows:
>
>inside check IF
>Time = 1072308706.
>
>Fatal error: Call to undefined function: array() in
>/Library/WebServer/Documents/testit/Logsafe_project/user_auth_fns.php
>on line 35
>
>As you can see, the code bombs as soon as it hits the
>$_SESSION('timestamp').

$_SESSION is an array, therefore its elements are indexed like so:
$_SESSION['timestamp'].

-mike.

---------------------------------------------------------------------
michal migurski- contact info and pgp key:
sf/ca            http://mike.teczno.com/contact.html

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to