vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   auto logout when close browser??? (https://vborg.vbsupport.ru/showthread.php?t=41852)

chipheodeptrai 08-03-2002 09:13 AM

auto logout when close browser???
 
Hi

Im looking for a hack about "auto logout when close browser???"

thanks for your ;) help

Logician 08-04-2002 04:26 PM

Technically not possible.. Closing the browser occurs in user side and a site can not detect (and act accordingly) browser closing..

You can use another trick though: Edit the relevant templates and delete "remember me" setting from settings (make it hidden and set it to no) so your users can't choose this option and need to relogin everytime they come to your site.. ;)

chipheodeptrai 08-04-2002 04:35 PM

TIA

but where is relevant templates ?

Logician 08-04-2002 04:54 PM

registeradult
registercoppa
modifyoptions

Delete part:
PHP Code:

    <td bgcolor="{firstaltcolor}"><normalfont><b>Automatically login when you return to the site? (uses cookies)</b></normalfont></td>
    <
td bgcolor="{firstaltcolor}"><normalfont>
        <
input type="radio" name="cookieuser" $cookieuserchecked value="yes"yes
        
<input type="radio" name="cookieuser" $cookieusernotchecked value="no"no
    
</normalfont></td

And add

<input type="hidden" name="cookieuser" value="no">

after

<form action="member.php" method="post"><input type="hidden" name="s" value="$session[dbsessionhash]">

(This line can be different in register templates, find similiar one add the line after it)

chipheodeptrai 08-04-2002 05:12 PM

i fixed but it not working :(

Logician 08-04-2002 06:37 PM

what do you mean by "not working"? If you applied it correctly a new member or an existing member who updates his options will be forced to login everytime they come to your site. Of course this change does not cover existing members who already set this option to YES before you change the templates. You need to run a SQL query to update existing users' options in your database to apply this change to them..

chipheodeptrai 08-06-2002 01:08 PM

OKIE
thanks so much...all fine now...

great man....lol

regards


All times are GMT. The time now is 08:12 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.01073 seconds
  • Memory Usage 1,722KB
  • 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)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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