News:

Pretty crazy that we're closer to 2030, than we are 2005. Where did the time go!

Main Menu

Total time logged in.

Started by while1, December 24, 2010, 01:45:42 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

iago

Quote from: deadly7 on December 25, 2010, 03:47:45 PM
Quote from: iago on December 25, 2010, 09:53:50 AM
If you leave your browser open on a page and don't click anything, the site has no way to know that you're still there (because you aren't sending it any requests).
I believe SMF keeps a 10 minute session open and then re-leases that time every new request you send. I don't remember where I read that though.
Yeah, that's pretty much the only way to do it. And it makes sense.

deadly7

Quote from: iago on December 26, 2010, 12:51:48 AM
Yeah, that's pretty much the only way to do it. And it makes sense.
How do they keep timed session? Is it just a timestamp stored in a cookie that then gets read by the website?
[17:42:21.609] <Ergot> Kutsuju you're girlfrieds pussy must be a 403 error for you
[17:42:25.585] <Ergot> FORBIDDEN

on IRC playing T&T++
<iago> He is unarmed
<Hitmen> he has no arms?!

on AIM with a drunk mythix:
(00:50:05) Mythix: Deadly
(00:50:11) Mythix: I'm going to fuck that red dot out of your head.
(00:50:15) Mythix: with my nine

iago

Quote from: deadly7 on December 26, 2010, 05:14:10 PM
Quote from: iago on December 26, 2010, 12:51:48 AM
Yeah, that's pretty much the only way to do it. And it makes sense.
How do they keep timed session? Is it just a timestamp stored in a cookie that then gets read by the website?
No idea, but the most logical way to time a session would be to measure time between page hits. After a certain threshold, it counts as a new 'visit'.

Joe

#18
They could just set a last visit field on your user row in the database. If you did it with a session variable cookie, you could hack it each time so your last load was 9 minutes and 50 seconds previous and rack up time very quickly. Then again, only the truly paranoid would protect against this attack.

EDIT -
It's 7:02 AM. That's my excuse and I'm sticking with it.
Quote from: Camel on June 09, 2009, 04:12:23 PMI'd personally do as Joe suggests

Quote from: AntiVirus on October 19, 2010, 02:36:52 PM
You might be right about that, Joe.


deadly7

Quote from: Joe on December 27, 2010, 07:57:51 AM
They could just set a last visit field on your user row in the database. If you did it with a session variable cookie, you could hack it each time so your last load was 9 minutes and 50 seconds previous and rack up time very quickly.
I'd understand for something meaningful why they would protect against that. My credit card website times you out after a certain amount of inactivity and you have to log back in. For SMF, I can't understand any reason for doing so.
[17:42:21.609] <Ergot> Kutsuju you're girlfrieds pussy must be a 403 error for you
[17:42:25.585] <Ergot> FORBIDDEN

on IRC playing T&T++
<iago> He is unarmed
<Hitmen> he has no arms?!

on AIM with a drunk mythix:
(00:50:05) Mythix: Deadly
(00:50:11) Mythix: I'm going to fuck that red dot out of your head.
(00:50:15) Mythix: with my nine

Newby

Quote from: deadly7 on December 27, 2010, 11:33:49 AM
My credit card website times you out after a certain amount of inactivity and you have to log back in. For SMF, I can't understand any reason for doing so.

Likely the same way it does it.

The way the Last Activity page works is that it lists the last users logged in, the last page they loaded and how long ago that was. Within 15 minutes of you loading that page. Anyone wanna bet it has something to do with that?

(It adds your time between page loads to your total time logged in, and if you don't load a page after 15 minutes it adds 15 minutes and kills your session.)

Were we still really wondering how it works? Maybe I just jumped to conclusions.

Basically anyone that wanted to cheat that number could load Opera and have it refresh once every 15 minutes. Any faster than that and you're just wasting iago's precious bandwidth. :(
- Newby
http://www.x86labs.org

Quote[17:32:45] * xar sets mode: -oooooooooo algorithm ban chris cipher newby stdio TehUser tnarongi|away vursed warz
[17:32:54] * xar sets mode: +o newby
[17:32:58] <xar> new rule
[17:33:02] <xar> me and newby rule all

Quote from: Rule on June 30, 2008, 01:13:20 PM
Quote from: CrAz3D on June 30, 2008, 10:38:22 AM
I'd bet that you're currently bloated like a water ballon on a hot summer's day.

That analogy doesn't even make sense.  Why would a water balloon be especially bloated on a hot summer's day? For your sake, I hope there wasn't too much logic testing on your LSAT.