vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Set different Session Timeout for guest (https://vborg.vbsupport.ru/showthread.php?t=275452)

basketmen 12-13-2011 09:10 PM

Set different Session Timeout for guest
 
In table session, using phpmyadmin, i see too many rows, it can be highload, current Session timeout is still Default : 900

i want to change Session timeout for guest : 600
but for member still : 900


is there a way to do that?




if needed a plugin, is this will working? :

Quote:

Product : vbulletin
Hook Location : global_start
Title : different Session Timeout for guest
Execution Order : 1
Plugin PHP Code :

Quote:

if (is_member_of($bbuserinfo, 0))
{
$vbulletin->options['cookietimeout']='600';
<else />
$vbulletin->options['cookietimeout']='900';
}



and let empty admincp > vboptions > Cookies and http header options > Session timeout






really please share your experience, i want to try it

Lynne 12-13-2011 09:27 PM

That will not remove the rows from the session table - that gets done by a Scheduled Task that runs once an hour.

basketmen 12-13-2011 10:02 PM

Quote:

Originally Posted by Lynne (Post 2277481)
That will not remove the rows from the session table - that gets done by a Scheduled Task that runs once an hour.

no, above plugin is to set Session Timeout

replacing the value in admincp > vboptions > Cookies and http header options > Session timeout

for existed rows in sesions table, i will just empty it in phpmyadmin



is it above plugin will work to set different Session Timeout for guest?

Lynne 12-14-2011 01:03 AM

But you said your problem was too many rows in the session table, and what I'm saying is that changing the session timeout via that plugin is going to do nothing for the rows in the session table.


All times are GMT. The time now is 11:42 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01116 seconds
  • Memory Usage 1,718KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete