Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Site Integration MOD/Universal Login Conflict?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

ROB
Junior Member

USA
347 Posts

Posted - 16 February 2004 :  13:51:04  Show Profile  Visit ROB's Homepage  Send ROB an AOL message  Send ROB an ICQ Message  Send ROB a Yahoo! Message
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

Posted - 17 February 2004 :  20:22:42  Show Profile  Visit ROB's Homepage  Send ROB an AOL message  Send ROB an ICQ Message  Send ROB a Yahoo! Message
Any clues at all?

I guess the question is when mlev is initialized?

Jeff (ROB) Hester
BigBlueNetwork | BigBlueBall | Christian Church Today
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 17 February 2004 :  20:58:35  Show Profile
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
Go to Top of Page

ROB
Junior Member

USA
347 Posts

Posted - 17 February 2004 :  21:17:42  Show Profile  Visit ROB's Homepage  Send ROB an AOL message  Send ROB an ICQ Message  Send ROB a Yahoo! Message
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
Go to Top of Page

ROB
Junior Member

USA
347 Posts

Posted - 18 February 2004 :  18:50:26  Show Profile  Visit ROB's Homepage  Send ROB an AOL message  Send ROB an ICQ Message  Send ROB a Yahoo! Message
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
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 18 February 2004 :  19:03:26  Show Profile
i see ... let me check something real quick and i'll get back to ya ...

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 18 February 2004 :  19:05:20  Show Profile
can you post the code used to process the form after loggin in?

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page

ROB
Junior Member

USA
347 Posts

Posted - 19 February 2004 :  19:17:02  Show Profile  Visit ROB's Homepage  Send ROB an AOL message  Send ROB an ICQ Message  Send ROB a Yahoo! Message
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.asp
select 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
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 19 February 2004 :  19:34:29  Show Profile
hmm... i'm really not sure. do you have your cookies set to forum or website?

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page

ROB
Junior Member

USA
347 Posts

Posted - 20 February 2004 :  03:43:40  Show Profile  Visit ROB's Homepage  Send ROB an AOL message  Send ROB an ICQ Message  Send ROB a Yahoo! Message
Cookies are set to website.

I'm stumped, too!
Go to Top of Page

xhriz
Starting Member

6 Posts

Posted - 30 May 2004 :  13:48:04  Show Profile
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
Go to Top of Page

maxray
Starting Member

5 Posts

Posted - 06 December 2004 :  11:07:07  Show Profile
i too have the same problem... if anyone knows the solution.. let me know :)
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.3 seconds. Powered By: Snitz Forums 2000 Version 3.4.07