Author |
Topic |
|
ROB
Junior Member
USA
347 Posts |
Posted - 16 February 2004 : 13:51:04
|
I'm using the site integration and universal login mods, and I'm getting some strange behavior. The login include is called by the site's header include. When users login, they actually are logged in, but the until they either refresh the page or navigate to another page on the site, they still see the login form. This would be a minor annoyance if it weren't confusing users.
Any ideas why this is happening?
The URL of the site in question is http://www.christianchurchtoday.com |
|
ROB
Junior Member
USA
347 Posts |
|
Nikkol
Forum Moderator
USA
6907 Posts |
Posted - 17 February 2004 : 20:58:35
|
do you have a test login we can use to see what's happening?
very nice looking site btw. |
Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~ |
Edited by - Nikkol on 17 February 2004 20:59:48 |
|
|
ROB
Junior Member
USA
347 Posts |
Posted - 17 February 2004 : 21:17:42
|
Sure, use tester01/password
Thanks for the kind words. Still working on the forum home, but it's coming together.
The inc_login.asp is called by inc_site_left.asp, and the problem begins here:<table align="center" border="0" cellpadding="0" cellspacing="1" width="166" bgcolor="silver">
<%
if (mlev = 0) then %>
<form action="<%=Request.ServerVariables("URL")%>" method="post" id="form1" name="form1">
<input type="hidden" name="Method_Type" value="login">
Apparently mlev = 0, even though the user is actually logged in. As previously noted, you can verify this by navigating to any other page in the site and checking the login form. You'll see your user name and the logout button. |
Edited by - ROB on 18 February 2004 02:57:27 |
|
|
ROB
Junior Member
USA
347 Posts |
Posted - 18 February 2004 : 18:50:26
|
Can someone ouline when mlev is set? That seems to be the crux of the problem. Oddly, refreshing the page then correctly shows the user as logged on! |
Jeff (ROB) Hester BigBlueNetwork | BigBlueBall | Christian Church Today |
|
|
Nikkol
Forum Moderator
USA
6907 Posts |
|
Nikkol
Forum Moderator
USA
6907 Posts |
|
ROB
Junior Member
USA
347 Posts |
Posted - 19 February 2004 : 19:17:02
|
For example, default.asp (the site home, not the forum home) includes inc_header.asp
inc_header.asp includes inc_site_left.asp (from the site integration mod).
inc_site_left.asp includes inc_login.asp
inc_login.asp performs the following test:if (mlev = 0) then If mlev = 0, it shows the login form. Otherwise it shows the username and logout button. Here is the login code from inc_header.aspselect case Request.Form("Method_Type")
case "login"
strEncodedPassword = sha256("" & Request.Form("Password"))
select case chkUser(strDBNTFUserName, strEncodedPassword,-1)
case 1, 2, 3, 4
Call DoCookies(Request.Form("SavePassword"))
strLoginStatus = 1
case else
strLoginStatus = 0
end select
case "logout"
Call ClearCookies()
end select |
|
|
Nikkol
Forum Moderator
USA
6907 Posts |
|
ROB
Junior Member
USA
347 Posts |
Posted - 20 February 2004 : 03:43:40
|
Cookies are set to website.
I'm stumped, too! |
|
|
xhriz
Starting Member
6 Posts |
Posted - 30 May 2004 : 13:48:04
|
got the same problem on my site, im not a programmer but i can edit the design part. I got a empty inc_header.asp, emty means only code no menu or images... but same thing it needs to refresh after login to show that you are logged on and it confuses the members.
so if anyone have a fix for this let me know...
http://thefatsoldier.no-ip.com
|
|
|
maxray
Starting Member
5 Posts |
Posted - 06 December 2004 : 11:07:07
|
i too have the same problem... if anyone knows the solution.. let me know :) |
|
|
|
Topic |
|