Need to know Joomla Session timer data type -


i have been looking under database of joomla. there found under gu94g_session table, time column having value 1377499731. mean. how can decode time. appreciate help.enter image description here

the time column contains unix timestamp @ time of records creation.

in joomla! 2.5+ , 3.x+ time column of #__session set value returned php's time() i.e. current unix timestamp.

when sessions stored in database, /libraries/joomla/sessions/storage/database.php file creates record using sql query:

        $query = $db->getquery(true)             ->update($db->quotename('#__session'))             ->set($db->quotename('data') . ' = ' . $db->quote($data))             ->set($db->quotename('time') . ' = ' . $db->quote((int) time()))             ->where($db->quotename('session_id') . ' = ' . $db->quote($id)); 

the time set line:

->set($db->quotename('time') . ' = ' . $db->quote((int) time()))


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -