The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
auto logout when close browser???
Hi
Im looking for a hack about "auto logout when close browser???" thanks for your help |
#2
|
||||
|
||||
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.. |
#3
|
|||
|
|||
TIA
but where is relevant templates ? |
#4
|
||||
|
||||
registeradult
registercoppa modifyoptions Delete part: PHP Code:
<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) |
#5
|
|||
|
|||
i fixed but it not working
|
#6
|
||||
|
||||
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..
|
#7
|
|||
|
|||
OKIE
thanks so much...all fine now... great man....lol regards |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|