vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Elegant Login / Session Script? (https://vborg.vbsupport.ru/showthread.php?t=49444)

blippio 02-27-2003 07:03 PM

Elegant Login / Session Script?
 
Howdy-

We just set up a website with vBulletin 2.3 and vbHome 4.2. We have structured the entire site under SSL, and would like the ability to do the following:

- Have ONE login prompt at login screen that logs the user into the Front Page of vbHome AND allows them access to the vBulletin forum

and,

- Have a timed session "auto-logout"; where a logged-on user, if inactive for say 10 minutes, is prompted to re-login.

You can probably guess that this site has to be pretty secure. We also will only be having 20-30 users max, total. All registration will be closed.

I've seen hacks that do partially what we're after, though I'm looking for one "elegant" solution that fits the bill!

Please "dumb-down" your response as I am a total newbie to scripting / vBulletion!

thanks!

JamesUS 03-01-2003 10:13 AM

I think the best way to handle this (assuming I haven't misunderstood what you want) is to:

-remove the various cookie/sessions option from the User CP (through the usercp and register templates)
-Set the permissions so that only registered users can view the board (through the usergroup section of the CP)
-Change the error_nopermission template to suit you. This will be displayed as a front-page login box.


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.01000 seconds
  • Memory Usage 1,705KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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