Index: trunk/core/kernel/application.php =================================================================== diff -u -r2368 -r2392 --- trunk/core/kernel/application.php (.../application.php) (revision 2368) +++ trunk/core/kernel/application.php (.../application.php) (revision 2392) @@ -158,6 +158,8 @@ if( !$this->RecallVar('curr_iso') ) $this->StoreVar('curr_iso', $this->GetPrimaryCurrency() ); + $this->SetVar('visits_id', $this->RecallVar('visit_id') ); + $this->ValidateLogin(); // TODO: write that method if( $this->isDebugMode() ) @@ -1232,6 +1234,19 @@ return 0; } + /** + * Set's any field of current visit + * + * @param string $field + * @param mixed $value + */ + function setVisitField($field, $value) + { + $visit =& $this->recallObject('visits'); + $visit->SetDBField($field, $value); + $visit->Update(); + } + } ?> \ No newline at end of file