Changeset 2900 for trunk/include
- Timestamp:
- Nov 23, 2008, 12:33:17 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_session.inc.php
r2884 r2900 132 132 { 133 133 $query = ' 134 UPDATE '.SESSIONS_TABLE.' 135 SET expiration = now(), 136 data = \''.$data.'\' 137 WHERE id = \''.get_remote_addr_session_hash().$session_id.'\' 138 ;'; 139 pwg_query($query); 140 if ( mysql_affected_rows()>0 ) 141 { 142 return true; 143 } 144 $query = ' 145 INSERT INTO '.SESSIONS_TABLE.' 134 REPLACE INTO '.SESSIONS_TABLE.' 146 135 (id,data,expiration) 147 136 VALUES(\''.get_remote_addr_session_hash().$session_id.'\',\''.$data.'\',now())
Note: See TracChangeset
for help on using the changeset viewer.