vb 3.1
i use style have problem with cookies when i login it's work vry nice but when i close the explorer and vist my vb site again it's ask me to login a gain
i will put the code that style use and please take a look for that code if there any thing missing or wrong in this code please help me
this the code
<if condition="$bbuserinfo['userid']">
<font class="smallfont" color="#FFFFFF"><b><strong><phrase 1="$bbuserinfo[username]">hi there $bbuserinfo[username]</phrase></strong><br />
new masge: <font color="#FF8C25"><if condition="$bbuserinfo['pmunread']"><strong>$bbuserinfo[pmunread]</strong><else />$bbuserinfo[pmunread]</if></font> |total: <font color="#FF8C25">$bbuserinfo[pmtotal]</font><br />
sain out: <a href="login.php?$session[sessionurl]do=logout" onclick="return log_out()" class="head">clike here</a><br />
last vist: <font color="#FF8C25">$pmbox[lastvisitdate] $pmbox[lastvisittime]</font>
</b></font>
<else />
<form action="login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5password)">
<script type="text/javascript" src="clientscript/vbulletin_md5.js"></script>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td nowrap>
<input type="text" class="bginput" name="vb_login_username" id="navbar_username" size="18" accesskey="u" tabindex="1" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /><br />
<input type="password" class="bginput" name="vb_login_password" size="18" accesskey="p" tabindex="2" />
<input type="submit" class="bginput" value="Login Now!" accesskey="s" /></td>
</tr>
</table>
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="forceredirect" value="1" />
<input type="hidden" name="vb_login_md5password" />
</form>
</if>
i use style have problem with cookies when i login it's work vry nice but when i close the explorer and vist my vb site again it's ask me to login a gain
i will put the code that style use and please take a look for that code if there any thing missing or wrong in this code please help me
this the code
<if condition="$bbuserinfo['userid']">
<font class="smallfont" color="#FFFFFF"><b><strong><phrase 1="$bbuserinfo[username]">hi there $bbuserinfo[username]</phrase></strong><br />
new masge: <font color="#FF8C25"><if condition="$bbuserinfo['pmunread']"><strong>$bbuserinfo[pmunread]</strong><else />$bbuserinfo[pmunread]</if></font> |total: <font color="#FF8C25">$bbuserinfo[pmtotal]</font><br />
sain out: <a href="login.php?$session[sessionurl]do=logout" onclick="return log_out()" class="head">clike here</a><br />
last vist: <font color="#FF8C25">$pmbox[lastvisitdate] $pmbox[lastvisittime]</font>
</b></font>
<else />
<form action="login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5password)">
<script type="text/javascript" src="clientscript/vbulletin_md5.js"></script>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td nowrap>
<input type="text" class="bginput" name="vb_login_username" id="navbar_username" size="18" accesskey="u" tabindex="1" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /><br />
<input type="password" class="bginput" name="vb_login_password" size="18" accesskey="p" tabindex="2" />
<input type="submit" class="bginput" value="Login Now!" accesskey="s" /></td>
</tr>
</table>
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="forceredirect" value="1" />
<input type="hidden" name="vb_login_md5password" />
</form>
</if>
Comment