Active InfoActive Info  Display List of Info MembersMemberlist  Search The InfoSearch  HelpHelp
  RegisterRegister  LoginLogin
ASPProtect Full 7.x Support (Info Locked Info Locked)
 CJWSoft Support Info : ASPProtect Full 7.x Support
Subject Info: Page re-direction A d d  -  P o s tAdd P o s t
Author
Message << Prev Info | Next Info >>
pigneaux
New User
New User


Joined: February/04/2008
Location: United Kingdom
Online Status: Offline
Info: 4
Added: February/04/2008 at 7:06am | IP Logged Quote pigneaux

I have set up the application using groups.

Each group can login and go to my default page (used for testing). Each group can access the pages with ther group access level.

However at login I wish each group to be redirected to an specific .asp page within my site which has the correct group access level.

In the main admin page I can see the entry to enter a rediect page for a specific group.

I enter the url including Http:// but when this is entered and I try to enter a particular group from the main login page http://.../scripts/login_form_inc.aspthe login page hangs and does not redirect. As soon as I remove the redirect the user can login but go to the default page.

Back to Top View pigneaux's Profile Search for other info by pigneaux
 
cwilliams
Admin Group
Admin Group
Avatar
CJWSoft Web Software Developer

Joined: April/06/2004
Online Status: Offline
Info: 1769
Added: February/04/2008 at 10:49am | IP Logged Quote cwilliams

ok 1st off this make no sense to me as there is no such thing regarding groups. There is no groups redirect feature..

"In the main admin page I can see the entry to enter a rediect page for a specific group."

next off.... this is a completely invalid url..

http://.../scripts/login_form_inc.asp

moving on.... that "login_form_inc.asp" is an include file and NEVER intended to be linked to directly or run by itself

lastly... redirection on login is very poor site and there is almost never a good reason to be doing it, but hey that is your business...


please explain all of this in more detail and I will see if I can help..

__________________

Best Regards, Christopher Williams www.CJWSoft.com
Back to Top View cwilliams's Profile Search for other info by cwilliams Visit cwilliams's Homepage
 
pigneaux
New User
New User


Joined: February/04/2008
Location: United Kingdom
Online Status: Offline
Info: 4
Added: February/05/2008 at 3:49am | IP Logged Quote pigneaux

I would like to explain.

 

I set up my users with a group Id and using the new facility referred to in the help section of the application I set up my pages.

 

From the help section

 

Using Groups Like Access Levels
ASPProtect v8.x has a new feature called groups.

Groups are meant as a replacement for using the access levels as they are much more powerful. Support for pages protected using access levels is left in tact for backward compatiability for a customer that was using them.

 

____________________________________________________________ _________

No group redirect feature? What I was referring to is in the User admin

 

Redirection_URL

< size=40 name=Redirection_URL>
This is a URL a user will be redirected to the 1st time they log in to the site. You can use this for whatever reason you wish. It was a requested feature. Must contain http info

 

____________________________________________________________ _________

 

I am fully aware that http://.../scripts/login_form_inc.asp is an invalid it was only a guide the full URL is  http://10.90.172.20/mediaserver/scripts/login_form_inc.asp

 

 

"login_form_inc.asp" is an include file and NEVER intended to be linked to directly or run by itself

 

I must have missed something out, Initially I followed the  Login form on a non protected page instructions which worked when a user login correctly but if a non user or  incorrect user details were entered the user was directed to the login_form_inc.asp to re-enter the details. As this happened I decided to use this page.

 

What I am trying to do ?

 

I am a network administrator at a school and I have been asked to create a webased application with password protection, After looking at a number of products available this one appeared to suit our needs the best so we opted for it.

 

Basically the application is split into 15 departments, each department is given a usename and password.

 

From this when a user logins in they go to a section of the application for which they have permission for.

 

By adding

<%@ LANGUAGE="VBSCRIPT" %>

<% GROUPACCESS = "4" %>

<!--#INCLUDE FILE="../check_user_inc.asp"-->

 

To the top of each relavant page for each department it seemed to work.

 

At present when a user logins in they go to a main page with all fifteen departments listed, they then have to click on a link to the appropriate department, if they click on the wrong one they return to the login box with a warning.

 

All I was attempting to accomplish was to streamline the application that when a user entered their name they would go directly to their department page and not to the  main page with all the departments listed.   

Back to Top View pigneaux's Profile Search for other info by pigneaux
 
cwilliams
Admin Group
Admin Group
Avatar
CJWSoft Web Software Developer

Joined: April/06/2004
Online Status: Offline
Info: 1769
Added: February/05/2008 at 10:08am | IP Logged Quote cwilliams

the redirection_url is on a single user basis... it has nothing to do with groups.. it also is on a 1st hit to the site basis... it only redirects once then any other pages hit dont redirect.. otherwise you would get an endless loop.

If you want to redirect somewhere based on the groups.. I would suggest you check the groups session variable after login and do an ASP redirect to wherever on your own..

Now, If you are giving 15 people the same username/password for every group that is not the intention of an application like this.. It would make a lot more sense to not even use an application like this and just do it with simple code..

http://www.powerasp.com/content/code-snippets/simple-passwor d-protection.asp

or

http://www.codewanker.com/codearticle10.htm



__________________

Best Regards, Christopher Williams www.CJWSoft.com
Back to Top View cwilliams's Profile Search for other info by cwilliams Visit cwilliams's Homepage
 
pigneaux
New User
New User


Joined: February/04/2008
Location: United Kingdom
Online Status: Offline
Info: 4
Added: February/05/2008 at 10:40am | IP Logged Quote pigneaux

I am not giving 15 people that same username  and password, each department/ user has a different password.

Odd advise to tell someone not to use something they have paid for.

 

Back to Top View pigneaux's Profile Search for other info by pigneaux
 
cwilliams
Admin Group
Admin Group
Avatar
CJWSoft Web Software Developer

Joined: April/06/2004
Online Status: Offline
Info: 1769
Added: February/05/2008 at 2:07pm | IP Logged Quote cwilliams

well, that's what you said above...

you know what... you want to give me attitude then you can get help somewhere else... I do not have to answer these questions..

the only thing that is odd is all the half baked things you are explaining to me

The main purpose of technologies such as Active Server Pages is to create dynamic pages that dynamically change based on what is going on. In this case they should change based on what user is logged in. Do you think sites like my myspace and paypal redirect users to different folders based on who logged in. No of course they don't.

You want to redirect individual people go ahead.. that feature works perfectly... but you want to redirect based on groups that is not a feature and I just told you how to do it.

Then you tell me that users are directed to "login_form_inc.asp" which is 100% not anything any of my code would ever do.

I mean really.. go ahead give me more attitude cause I am not on the frigin mood for it..



__________________

Best Regards, Christopher Williams www.CJWSoft.com
Back to Top View cwilliams's Profile Search for other info by cwilliams Visit cwilliams's Homepage
 
pigneaux
New User
New User


Joined: February/04/2008
Location: United Kingdom
Online Status: Offline
Info: 4
Added: February/05/2008 at 3:17pm | IP Logged Quote pigneaux

I can only appoligise if what I wrote has given you cause to think that I was giving any for of attitude I had no intention of doing that.

Also I am sorry if you think I the way I am explaining things is half baked.

The only way I could get the script to work was by using the "login_form_inc.asp". I read the help file and must have overlooked the part on how to login correctly.

I will read the instructions again.

Once again  sorry for any offense you have tanken to my previous comments none was ment.

 

 

Back to Top View pigneaux's Profile Search for other info by pigneaux
 

Sorry, you can NOT post info.
This info has been locked by a info administrator.

  A d d  -  P o s tAdd P o s t
Printable version Printable version

Info Jump
You cannot add new info in this area
You cannot add to info in this area
You cannot delete your info in this area
You cannot edit your info in this area
You cannot create polls in this area
You cannot vote in polls in this area


Active Server Pages help tutorial how to ASP Help ASP Tutorials ASP Programming ASP Code - ASP Free CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspprotect.com, www.powerasp.com,www.aspclassifieds.com,www.aspphotogallery.com,www.codewanker.com