Changeset 647 for trunk/include/functions_session.inc.php
- Timestamp:
- Dec 18, 2004, 11:05:30 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_session.inc.php
r593 r647 87 87 } 88 88 // 3. inserting session in database 89 $expiration = $session_length + time();90 89 $query = ' 91 90 INSERT INTO '.SESSIONS_TABLE.' 92 (id,user_id,expiration ,ip)91 (id,user_id,expiration) 93 92 VALUES 94 (\''.$generated_id.'\','.$userid.', '.$expiration.',95 \''.$_SERVER['REMOTE_ADDR'].'\')93 (\''.$generated_id.'\','.$userid.', 94 ADDDATE(NOW(), INTERVAL '.$session_length.' SECOND)) 96 95 ;'; 97 96 pwg_query($query); 98 97 98 $expiration = $session_length + time(); 99 99 setcookie('id', $generated_id, $expiration, cookie_path()); 100 100
Note: See TracChangeset
for help on using the changeset viewer.