Author |
Topic |
|
UHK
Starting Member
3 Posts |
Posted - 09 June 2001 : 18:37:18
|
Hi,
I am new to this forum and I have encountered a (to me) serious problem, which I hope someone can help me with. I have just downloaded the Snitz forum and have tried to reach the admin_home.asp page in order to customize my new forum. However, I keep being redirected back to the admin_login.asp when I try to login the second time. I'm not getting any errors - I just get redirected. Can someone help me? I have tried deleting cookies, but that didn't help.
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 09 June 2001 : 21:19:12
|
Where are you accessing the admin_home.asp page from? Are you typing it into the address bar or are you clicking on the link from the default.asp page?
After you get re-directed to the admin_login.asp page, you typed in your admin password and username and clicked submit and it still re-directed you back to the login page?
If you haven't changed your default "Admin" username and "admin" password, could you post a link to your forum?
|
|
|
UHK
Starting Member
3 Posts |
Posted - 10 June 2001 : 15:05:07
|
quote:
Where are you accessing the admin_home.asp page from? Are you typing it into the address bar or are you clicking on the link from the default.asp page?
I am clicking on the link from the default.asp page.
quote:
After you get re-directed to the admin_login.asp page, you typed in your admin password and username and clicked submit and it still re-directed you back to the login page?
That's right. It's really strange.
quote:
If you haven't changed your default "Admin" username and "admin" password, could you post a link to your forum?
I haven't changed the "admin" password, so maybe I should have included the link in my first post. Anyway, here it is:
http://www.dvdmagasinet.dk/snitz/default.asp
I really hope that you or someone else can help me.
|
|
|
e3stone
Average Member
USA
885 Posts |
Posted - 10 June 2001 : 19:24:42
|
in admin_login.asp look for this code:
IF RequestMethod = "POST" Then
'## Forum_SQL strSql = "SELECT MEMBER_ID " strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS " strSql = strSql & " WHERE M_NAME = '" & Name & "' AND " strSql = strSql & " M_PASSWORD = '" & Password & "' AND " strSql = strSql & " M_LEVEL = 3" Set dbRs = my_Conn.Execute(strSql) If not(dbRS.EOF) and ChkQuoteOk(Name) and ChkQuoteOk(Password) Then %> <p align="center"><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>">Login was successful!</font></p> <% Session(strCookieURL & "Approval") = "15916941253" %> <p align="center"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><a href="admin_home.asp" target="_top">Click here to Access.</a></font></p> <meta http-equiv="Refresh" content="2; URL=admin_home.asp"> <!--#INCLUDE file="inc_footer.asp" --> <% Response.End %> <% Else %> <center>
make sure the number in red matches the number at the top of admin_home.asp
another thing I noticed is that your cookies are being saved as www.1klik instead of www.dvdmagasinet I don't know if that is a problem, but you should be able to change that on line 91 of config.asp strUniqueID is the variable that you should change to your website name. Other than those two things, I don't know what would be causing this.
Somehow, this statement: <% If Session(strCookieURL & "Approval") = "15916941253" Then %> is returning false, so its skipping down to the redirect at the bottom of the page.
<-- Eric -->
InsideWaco.com |
|
|
john3000
Starting Member
2 Posts |
Posted - 10 June 2001 : 20:59:52
|
Try adding the following lines to your global.asa file (if you don't have this file, create it--it's just a plain text file in the root directory of the web server):
<OBJECT RUNAT=Server SCOPE=Session ID=MyInfo PROGID="MSWC.MyInfo"> </OBJECT>
-john
|
|
|
UHK
Starting Member
3 Posts |
Posted - 11 June 2001 : 15:22:56
|
Thank you both of you!
I would never have come up with that myself - I can't wait to try all 3 suggestions.
|
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 11 June 2001 : 16:56:58
|
Please don't try what John3000 suggested. You can do what e3stone suggested.
|
|
|
john3000
Starting Member
2 Posts |
Posted - 11 June 2001 : 23:45:41
|
quote:
Please don't try what John3000 suggested. You can do what e3stone suggested.
With both IIS 4.0 and 5.0, you need to include the code I posted in the global.asa file or the session object won't work correctly (it won't persist between page views). I know this because I had the same problem when I first started using the forum code. It is not an issue with the value of the cookie, as e3stone suggested.
-john
|
|
|
Doug G
Support Moderator
USA
6493 Posts |
Posted - 12 June 2001 : 00:36:05
|
MyInfo has nothing to do with session variables. From MS docs:
The MyInfo component creates a MyInfo object that keeps track of personal information, such as the site administrator's name, address, and display choices. Originally, the administrator typed this information directly into the Personal Web Server Web Site Wizard interface on older versions, and doing so created a formatted home page. However, you can set the values of the properties directly and retrieve them yourself to create your own home page.
After you change any of the MyInfo Component properties, the IIS Services may need to be restarted before the changes are written to MyInfo.xml.
File Names MyInfo.dll The MyInfo component. MyInfo.xml The file that stores the values of the MyInfo properties.
Syntax Create a MyInfo object once in the Global.asa file by adding the following lines to Global.asa:
<OBJECT RUNAT=Server SCOPE=Session ID=MyInfoObject PROGID="MSWC.MyInfo"> </OBJECT>
Important
Only create one MyInfo object on your site.
You can create a MyInfo object with
Set MyInfoObject = Server.CreateObject("MSWC.MyInfo")
but you run the risk of creating the object more than once. It is best to use the <OBJECT> syntax in Global.asa.
====== Doug G ====== |
|
|
e3stone
Average Member
USA
885 Posts |
Posted - 12 June 2001 : 10:12:19
|
quote:
quote:
Please don't try what John3000 suggested. You can do what e3stone suggested.
With both IIS 4.0 and 5.0, you need to include the code I posted in the global.asa file or the session object won't work correctly (it won't persist between page views). I know this because I had the same problem when I first started using the forum code. It is not an issue with the value of the cookie, as e3stone suggested.
-john
All I know is that I don't have a global.asa file and mine works fine. So, with that in mind, I still believe its a cookie issue.
<-- Eric -->
InsideWaco.com |
|
|
big9erfan
Average Member
540 Posts |
Posted - 12 June 2001 : 10:46:09
|
I have a global.asa file and I don't have that code and my site works just fine. Humm...
http://www.ugfl.net/forums |
|
|
|
Topic |
|