phpBB2Refugees.com Logo
Not affiliated with or endorsed by the phpBB Group

Register •  Login 

Continue the legacy...

Welcome to all phpBB2 Refugees!Wave Smilie

This site is intended to continue support for the legacy 2.x line of the phpBB2 bulletin board package. If you are a fan of phpBB2, please, by all means register, post, and help us out by offering your suggestions. We are primarily a community and support network. Our secondary goal is to provide a phpBB2 MOD Author and Styles area.

Last visit bug


 
Search this topic... | Search phpBB2 Discussion... | Search Box
Register or Login to Post    Index » phpBB2 Discussion  Previous TopicPrint TopicNext Topic
Author Message
fuzioneer
Board Member



Joined: 04 May 2013

Posts: 2



PostPosted: Sat May 04, 2013 9:28 am 
Post subject: Last visit bug

I have a nuked site which has a derivative of phpbb2 on it which has been customized considerably over 10 years !

I have a problem that has only recently come to light but one which is causing considerable issues with my user base

the problem is all based around the user_lastvist field

one part of our website that is used a lot is the posts since my last visit page and this is basically a search of all the posts made since the users last visit date/timestamp

This suddenly stopped working, now caveat I was working on many addons for the site over the course of a month and the issue may have been running for a while before it was actually reported, I have tried to back out of some of the changes but afaik none of them should cause issues with this functionality

The symptom is the user_lastvisit field is set to todays date / time so of course no posts are displayed in the new posts page

I have found some references to the lastvisit field in nuke_users but I am unclear about how actually the session works within phpbb

i.e. if i am browsing my site and then just walk away and come back 3 hours later, what happens is the user_lastvisit field is updated immediately to now and so no new posts show, whereas i "think" it should not do this, can some one more in the know tell me how this field and contents interact with the code / sessions / cookies so I can try and get to the bottom of it ???
Back to top
Salvatos
Board Member



Joined: 19 Feb 2009

Posts: 416
Location: Québec


flag
PostPosted: Sat May 04, 2013 1:29 pm 
Post subject: Re: Last visit bug

If I remember correctly, user_session_time is updated as soon as a user logs in, and user_lastvisit becomes its previous value. So you should probably look through your files for anything that edits either of those values, or check that your last visit page is using the right one.
Back to top
JLA
Board Member



Joined: 30 Apr 2009

Posts: 298
Location: U.S.A


flag
PostPosted: Tue May 07, 2013 3:05 pm 
Post subject: Re: Last visit bug

Are you using the more efficient method developed by Lanzer (Gaia) for this function?
_________________
http://www.jlaforums.com
Back to top
fuzioneer
Board Member



Joined: 04 May 2013

Posts: 2



PostPosted: Sun May 12, 2013 1:47 pm 
Post subject: Re: Last visit bug

looks like on my system the session time is being copied into lastvisit field and so if a session lapses then the next time you refresh the page then go to new posts then no posts exist

No not using any new function for it
Back to top
JLA
Board Member



Joined: 30 Apr 2009

Posts: 298
Location: U.S.A


flag
PostPosted: Sun May 12, 2013 2:21 pm 
Post subject: Re: Last visit bug

fuzioneer wrote:
looks like on my system the session time is being copied into lastvisit field and so if a session lapses then the next time you refresh the page then go to new posts then no posts exist

No not using any new function for it


You should perhaps consider revising your code to use the updated functionality provided by Lanzer. If you need the code, let us know and we'll post it here.

_________________
http://www.jlaforums.com
Back to top
Display posts from previous:   
Register or Login to Post    Index » phpBB2 Discussion  Previous TopicPrint TopicNext Topic
Page 1 of 1 All times are GMT
 
Jump to:  

Index • About • FAQ • Rules • Privacy • Search •  Register •  Login 
Not affiliated with or endorsed by the phpBB Group
Powered by phpBB2 © phpBB Group
Generated in 0.0200 seconds using 15 queries. (SQL 0.0023 Parse 0.0006 Other 0.0171)
phpBB Customizations by the phpBBDoctor.com
Template Design by DeLFlo and MomentsOfLight.com Moments of Light Logo