[2.0.10] Keep Session Alive MOD

The cleanup is complete. This forum is now read only.

Rating:

Excellent!
1
50%
Very Good
1
50%
Good
0
No votes
Fair
0
No votes
Poor
0
No votes
 
Total votes: 2

Extensions Robot
Extensions Robot
Extensions Robot
Posts: 27650
Joined: Sat Aug 16, 2003 7:36 am

[2.0.10] Keep Session Alive MOD

Post by Extensions Robot » Sun Oct 17, 2004 12:28 am

MOD Name: Keep Session Alive MOD
Author: markus_petrux
MOD Description: This MOD keeps your user session alive while logged into your ACP. It avoids (annoying) redirections from the ACP to the Board Index after a period of inactivity greater than session_length.

MOD Version: 1.1.0

Download File: keep_session_alive_mod_v1_1_0.zip
mods overview page: View
File Size: 3492 Bytes

Security Score:
Last edited by Extensions Robot on Mon Apr 30, 2007 12:27 am, edited 1 time in total.
(this is a non-active account manager for the phpBB Extension Customisations Team)

User avatar
ycl6
Translator
Posts: 5696
Joined: Sat Feb 15, 2003 10:35 am
Location: Taiwan
Contact:

Post by ycl6 » Sat Oct 30, 2004 11:35 am

MOD Validated/Released

Notes:
This MOD will keep admin's session alive while he/she's in the admin control panel.

User avatar
markus_petrux
Former Team Member
Posts: 1887
Joined: Wed Apr 23, 2003 7:11 am
Location: Girona, Catalunya (Spain)
Contact:

Post by markus_petrux » Sat Oct 30, 2004 2:52 pm

Thanks, ycl6! :)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The Beta topic for this MOD was here:
http://www.phpbb.com/phpBB/viewtopic.php?t=231519
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

How this MOD Works? This MOD adds a 1x1 pixel image in your ACP navigation panel which is automatically refreshed before your session expires. The URI for that small image is actually a script that updates your session_time. So that simple trick keeps your session alive while logged into your ACP. :)

Note for MOD authors: This MOD has been rewritten so it can be reused by other MODs more easily. If for whatever reason you need to keep the user session alive, all you have to do is include the javascript and the image in your template. See this MOD script for a sample on how to do it.


Cheers
EasyMOD Standards | MOD Template Actions | MODs in Development Rules
Useful information for MOD Authors | MOD Queue Stats | Search MODs
Write SQL/DDL portable to all SQL servers supported by phpBB!
Get EasyMOD 0.3.0! | Suport al phpBB en Català!
8)

kazper
Registered User
Posts: 122
Joined: Wed Apr 10, 2002 9:26 pm

Post by kazper » Sat Oct 30, 2004 6:04 pm

Great little mod. I love these small mods that add those little details that should (obviously after someone else thought of it and made them) be in phpBB =)

Great work.

User avatar
Kalipo
Registered User
Posts: 551
Joined: Mon Dec 08, 2003 1:47 pm

Post by Kalipo » Sun Mar 06, 2005 10:08 am

IE - :D

Firefox - :cry:

User avatar
markus_petrux
Former Team Member
Posts: 1887
Joined: Wed Apr 23, 2003 7:11 am
Location: Girona, Catalunya (Spain)
Contact:

Post by markus_petrux » Sun Mar 06, 2005 12:30 pm

Oopss. It seems a cache issue. Please, try the following:

Code: Select all

#
# ---[ OPEN ]----------
#
templates/keep_session_alive.js
#
# ---[ FIND ]----------
#
	document.images['ksa_img'].src = this.spacer;
#
# ---[ REPLACE WITH ]----------
#
	var d=new Date();
	var x=Math.ceil(((d.getTime()*9301+49297) % 233280)/(233280.0)*899999)+100000;
	document.images['ksa_img'].src = this.spacer + '&x=' + x;
#
# ---[ SAVE ]----------
#
:?:
EasyMOD Standards | MOD Template Actions | MODs in Development Rules
Useful information for MOD Authors | MOD Queue Stats | Search MODs
Write SQL/DDL portable to all SQL servers supported by phpBB!
Get EasyMOD 0.3.0! | Suport al phpBB en Català!
8)

User avatar
markus_petrux
Former Team Member
Posts: 1887
Joined: Wed Apr 23, 2003 7:11 am
Location: Girona, Catalunya (Spain)
Contact:

Post by markus_petrux » Tue Mar 22, 2005 9:56 pm

Well, above fix is rocking on my Firefox... 8)


Anyone else? Kalipo? ...any feedback, so I can submit the fix to the MODs Database. ;)
EasyMOD Standards | MOD Template Actions | MODs in Development Rules
Useful information for MOD Authors | MOD Queue Stats | Search MODs
Write SQL/DDL portable to all SQL servers supported by phpBB!
Get EasyMOD 0.3.0! | Suport al phpBB en Català!
8)

torstein
Registered User
Posts: 159
Joined: Mon Nov 22, 2004 8:23 pm

Post by torstein » Wed Mar 23, 2005 2:42 pm

Its work woth proxy?

Something who fix the forum from proxY?

User avatar
markus_petrux
Former Team Member
Posts: 1887
Joined: Wed Apr 23, 2003 7:11 am
Location: Girona, Catalunya (Spain)
Contact:

Post by markus_petrux » Wed Mar 23, 2005 7:29 pm

Have you tried above fix?

That one generates a random file name for the image, so the browser and the proxy should connect to the server to read the image, hence allow our magic script to update the session timestamp.

Note: the random name is generated in the form of src="image.php?x=random_number_here"


edited: Yes, I tested the fix on a proxy. It is also rocking over there ;)

I just need feedback (not only my tests), so I can apply the fix to the MOD and request an update to the MOD Team guys. :)
EasyMOD Standards | MOD Template Actions | MODs in Development Rules
Useful information for MOD Authors | MOD Queue Stats | Search MODs
Write SQL/DDL portable to all SQL servers supported by phpBB!
Get EasyMOD 0.3.0! | Suport al phpBB en Català!
8)

User avatar
markus_petrux
Former Team Member
Posts: 1887
Joined: Wed Apr 23, 2003 7:11 am
Location: Girona, Catalunya (Spain)
Contact:

Post by markus_petrux » Wed Mar 23, 2005 7:36 pm

Yes, I tested the fix behind a proxy. It is also rocking over there ;)

I just need feedback (not only my tests), so I can apply the fix to the MOD and request an update to the MOD Team guys. :)
EasyMOD Standards | MOD Template Actions | MODs in Development Rules
Useful information for MOD Authors | MOD Queue Stats | Search MODs
Write SQL/DDL portable to all SQL servers supported by phpBB!
Get EasyMOD 0.3.0! | Suport al phpBB en Català!
8)

torstein
Registered User
Posts: 159
Joined: Mon Nov 22, 2004 8:23 pm

Post by torstein » Wed Mar 23, 2005 11:50 pm

My problem with phpBB is: if some one log inn on mye proxy net.. And som one other want to visit the site, he is loged in with the first one..

User avatar
markus_petrux
Former Team Member
Posts: 1887
Joined: Wed Apr 23, 2003 7:11 am
Location: Girona, Catalunya (Spain)
Contact:

Post by markus_petrux » Thu Mar 24, 2005 12:09 am

Not sure what do you exactly mean... 8O

Uninstall this MOD and try. Does it happens?

If so, could you please describe step by step instructions to reproduce the problem? Please, include versions of browsers, webserver, proxy.

That sounds really weird. Not sure if related to this MOD...
EasyMOD Standards | MOD Template Actions | MODs in Development Rules
Useful information for MOD Authors | MOD Queue Stats | Search MODs
Write SQL/DDL portable to all SQL servers supported by phpBB!
Get EasyMOD 0.3.0! | Suport al phpBB en Català!
8)

torstein
Registered User
Posts: 159
Joined: Mon Nov 22, 2004 8:23 pm

Post by torstein » Thu Mar 24, 2005 12:52 am

If some one on the network login are all one loged in,,

Do you understand now?

User avatar
markus_petrux
Former Team Member
Posts: 1887
Joined: Wed Apr 23, 2003 7:11 am
Location: Girona, Catalunya (Spain)
Contact:

Post by markus_petrux » Thu Mar 24, 2005 1:22 am

markus_petrux wrote: Uninstall this MOD and try. Does it happens?

If so, then your problem is NOT related to this MOD :mrgreen:
EasyMOD Standards | MOD Template Actions | MODs in Development Rules
Useful information for MOD Authors | MOD Queue Stats | Search MODs
Write SQL/DDL portable to all SQL servers supported by phpBB!
Get EasyMOD 0.3.0! | Suport al phpBB en Català!
8)

User avatar
Kalipo
Registered User
Posts: 551
Joined: Mon Dec 08, 2003 1:47 pm

Post by Kalipo » Thu Mar 24, 2005 2:33 am

It doesn't work for me in FF. All edits doublechecked.

:x

Post Reply

Return to “[2.0.x] MOD Database Cleanup”

Who is online

Users browsing this forum: No registered users and 4 guests