JetStat support community forum

Free users community to help together with jetstat products

You are not logged in.

#1 2009-11-14 19:42:59

tbar
Member
Registered: 2009-10-20

installation

I can log in using "admin" and I can set up a new user and log in with the new user to an html page.

Questions:

1. I have all the pages I want to protect as html pages.  I added the protection code:

<%@ Language=VBScript %>
<!--#include virtual="/login/@check.asp"-->

at the top of each page and saved the pages as .asp pages.

I get a "500 internal server error".  I used Firefox to explore the error and it showed "empty string passed to getelemmentbyid().

2. I don't understand the how you are suppose to set it up.  On the admin setting tab it is fairly clear, you set the "Login OK folder page" to the page you want the user to go to, correct?  On the user etup what is the "Home folder" and what url to you put down.

HELP!!

Last edited by tbar (2009-11-16 21:21:09)

Offline

 

#2 2009-12-04 15:26:47

admin
Administrator
Registered: 2006-07-23

Re: installation

Can you send an url to check your setup to support or post here?

Offline

 

#3 2009-12-04 20:38:16

tbar
Member
Registered: 2009-10-20

Re: installation

This is the first I have heard from you.  Here is the info:
1. The website is drivenbymcgriff.com.  Click on the menu item My Mcgriff and then click on the little gray icon LOGIN.  All the users are directed to the page /mymcgriff.asp as set by the Login OK Folder/Page.  Try logging in with user name "tom" and password "test", you get a 500-Internal server error.

2. I am trying to protect all the pages in the  folder "mymcgriffclient".  I renamed all the html pages to .asp pages and put the following at the top:

<%@Language=VBScript%>
<%pageLevel=3%>
<!--#include virtual="/login/@check.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

Offline

 

#4 2009-12-08 23:52:49

tbar
Member
Registered: 2009-10-20

Re: installation

Administrator?  Any thoughts?

Offline

 

#5 2009-12-09 13:31:37

admin
Administrator
Registered: 2006-07-23

Re: installation

Tom you have an error inside your page: http://drivenbymcgriff.com/mymcgriff.asp
Script is working 100% just see the test:
http://drivenbymcgriff.com/login/debug.asp

Try to use simple test page without any mods:

Code:

<%@ Language=VBScript %>
<%  pageLevel=3 %>
<!--#include virtual="/login/@check.asp"-->

<HTML><HEAD><TITLE>JS ASP Login protected page</TITLE>

</HEAD><BODY bgcolor="#cdcdcd">
<TABLE cellSpacing=0 cellPadding=7 width="552" border=1 bgColor=white align=center>
<TR><TD bgColor=#6495ed><font face=Verdana color="#FFFFFF" size="+1">
&nbsp;<B>JS ASP Login protected page</B></FONT></TD></TR>
<TR><TD>
<h2>Protected demo page.</h2>
<h4>this is a demo page which is protected with JS ASP Login</h4>
If you wish to test security you can logout on parent window and
refresh this page. You must be redirected to login form.
<br>Do not forget to review asp source code of this page to get more 
information about protection methods.
<hr size=1 noshade><b>Session Variables:</b>
<br>Login name: <%=Session("login")%>
<br>UserLevel: <%=Session("lid")%>
<br>UserLevelName: <%=Session("UserLevelName")%>
<br>UserName: <%=Session("UserName")%>
<br>UserEmail: <%=Session("UserEmail")%>
<br><a href="../test2/">Test for concurrent user protection</a> - Users with same level can not access folders of each other.
<p align=right><a href=..>Menu</a> • <a href="javascript:location.reload(true)">Refresh</a>&nbsp;</p>
</TD></TR></TABLE>
</BODY></HTML>

Offline

 

#6 2009-12-09 18:27:23

tbar
Member
Registered: 2009-10-20

Re: installation

Great job, that worked!!!  Now I need to figure out how to keep the flash in the page and make it work.  Thanks much.

Offline

 

#7 2009-12-10 00:34:02

tbar
Member
Registered: 2009-10-20

Re: installation

I use Godaddy for my hosting.  I made the changes to the config.asp file as you advised in another post, ie const cDataSource ="/access_db/jsUsers.mbd" and so on.

When I change the page level to 3 as follows:

<%@ Language=VBScript %>
<%pageLevel=3%>
<!--#include virtual="/login/@check.asp"-->

I get the following:

http://www.drivenbymcgriff.com/acess_db/login/login.asp?cmd=ll

When I have the page level to 4 I am redirected to the proper page, but it is not protected.

I am wondering it I need to make a change to the @check.asp page?

Offline

 

#8 2010-01-18 10:19:53

admin
Administrator
Registered: 2006-07-23

Re: installation

With pagelevel=4 it is still protected just requires lower userlevel..
It depends from default userlevel you've set in the config.asp
I most cases it is working by default but this features is leaved to some heavy mods..

Solution: in the "/login/config.asp" lines #20-21:

'Default User configuration:
const cdDefUserLevel=3  'Level=User. Default User Level Granted on User Self Registration. Values as described in UserLevels Table of jsluser.mdb

please check that this is =3 or you can set this defaults to 4.

also please check the user profile via admin panel what userlevel is set fro such user..
standard members by default requires pagelevel 3 , 4 or more..
restricted users will able to login only to pages with pagelevel 4, 5 etc..
and if you're op or admin you will able to see pages with pagelevel <3

Offline

 

Board footer

Fueled by PunBoard
© R.Anderson