JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Merge branch 'master' of /home/jason/dev/git/wfpl
authorjason <jason@lappy.(none)>
Wed, 16 Apr 2008 22:24:38 +0000 (18:24 -0400)
committerjason <jason@lappy.(none)>
Wed, 16 Apr 2008 22:24:38 +0000 (18:24 -0400)
1  2 
session.php

diff --combined session.php
@@@ -71,10 -71,11 +71,11 @@@ function session_new($length = 86400) 
        $GLOBALS['session_key'] = $session_key;
        $_REQUEST['session_key'] = $session_key; #just in case someone calls session_exists() after session_new()
        session_touch($length);
+       return $GLOBALS['session_key'];
  }
  
  # call to renew the timeout for the session.
 -# assumes there's a session. call session_init() if you'd like one auto-create one if not found.
 +# assumes there's a session. call init_session() if you'd like one auto-create one if not found.
  function session_touch($length = false) {
        if(!$length) {
                $length = db_get_value('wfpl_sessions', 'length', 'where id=%i', $GLOBALS['session_id']);