PEAK XOOPS - Auto login and last visited in englishin japanese

Auto login and last visited

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 | Posted on 2005/1/5 5:32
OOB  ÆóÅùʼ   Posts: 1
I have installed the auto login hack on 2.0.7 and 2.0.9. I used the right hack/code for each version. Everything works like it should but the last visited time. The time stays at either the time if first login and had the site remember me or it is always the current time.

Example: if i visit the site and at 10:00am and come back at 11:00am the time will be 11:00am and NOT 10:00am or it will be what ever time I logged in for the frist time.

This messes everything in the forums up. Like what posts are new or old. Or what comments are new or old.

Dose anyoen know of anyway to fix this? Thanks much.
Votes:0 Average:0.00
Previous post - Next post | Parent - No child | Posted on 2005/1/5 5:49
GIJOE  ÀèǤ·³Áâ   Posts: 4110
hi OOB.

It is quite normal.

On visit 11:00, auto-login is worked.
(Session was timed-out since 10:00)

Since Auto-login means "log-in", it is natural to update "last visit".

Anyway, you can disable it quite easily.
edit include/common.php
		if (false != $user && $user->getVar('level') > 0) {
			// update time of last login
			$user->setVar('last_login', time());
			if (!$member_handler->insertUser($user, true)) {
			}
Votes:0 Average:0.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!