Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-09-2009, 09:00 PM
davida500 davida500 is offline
 
Join Date: May 2008
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default "Remember Me" Not Working....

When people Log In to the forums and tick the "Remember Me" box they are obviously supposed to stay logged in.... When they leave the Forums and close their browser and then return to the website they need to log in again, and i don't know why this is.....

Below is the code to the login box that i have (the code is from the header template):

Code:
<if condition="$show['member']">
<else />
		<div id="login">
		<div class="loginContent" style="width: 515px; height: 56px">
		<form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
		<script type="text/javascript" src="clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script>
		<table style="width: 100%">
			<tr>
				<td><label for="navbar_username"><b><span class="reg3">Username: </span></b></label></td>
				<td><input class="field" type="text" name="vb_login_username" id="log" size="23" value="Username" onblur="if(this.value=='') this.value='Username';" onfocus="if (this.value == 'Username') this.value = '';" />
				</td>
				<td><label for="navbar_password"><b><span class="reg3">Password:</span></b></label>
				</td>
				<td><input class="field" type="password" name="vb_login_password" id="pwd" size="23" tabindex="102" value="******" onblur="if(this.value=='') this.value='******';" onfocus="if (this.value == '******') this.value = '';" />				</td>
				<td><input type="submit" name="submit" value="" class="button_login" />
					<input type="hidden" name="redirect_to" value=""/>
		<input type="hidden" name="s" value="$session[sessionhash]" />
		<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
		<input type="hidden" name="do" value="login" />
		<input type="hidden" name="vb_login_md5password" />
		<input type="hidden" name="vb_login_md5password_utf" />
				</td>
			</tr>
			<tr>
				<td>
				</td>
				<td>
				<label for="cb_cookieuser_navbar"><input name="cookieuser" id="rememberme" class="rememberme" type="checkbox" checked="checked" value="forever" /><span class="reg2">Remember me</span></label>
				</td>
				<td>
				</td>
				<td>
				<a href="register.php"><span class="reg2">Register</span></a> | <a href="login.php?do=lostpw"><span class="reg2">Lost Your Password</span></a>
				</td>
				<td>
				</td>
			</tr>
		</table>
		</form>
		</div>
		<div class="loginClose"><a href="#" id="closeLogin">Close Panel</a></div>
		</div>
<!-- /login -->

    <div id="container1">
		<div id="top">
		<!-- login -->
			<ul class="login">
		    	<li class="left">&nbsp;</li>
		        <li>Hello Guest!</li>
				<li>|</li>
				<li><a id="toggleLogin" href="#">Log In</a></li>
<li>|</li>
<li><a href="/forums/register.php">Register</a></li>
			</ul> <!-- / login -->
		</div> <!-- / top -->
		
</div>	

</if>
Please feel free to go to the forums and Register to test it yourself, you can see my login box is a little different to other forums too......www.e3-clan.net

Thanks to all that help

David.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:15 PM.


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.04460 seconds
  • Memory Usage 2,205KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)showthread_list
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_threadedmode.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids_threaded
  • showthread_threaded_construct_link
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete