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.
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
Post a Comment