Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Protect the page with password
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Protect the page with password

 Post Reply Post Reply
Author
simoza View Drop Down
Groupie
Groupie
Avatar

Joined: 18 November 2004
Status: Offline
Points: 54
Post Options Post Options   Thanks (0) Thanks(0)   Quote simoza Quote  Post ReplyReply Direct Link To This Post Topic: Protect the page with password
    Posted: 07 February 2005 at 6:46pm
Hy, I've downoladed the pack that allow to protect a site area with user and password.
Weel,i think that I must create a page of users registration that save user and pwd in the database. Ok!
 
But when i'll go to test tha protect page doesn't works!
 
In all page that i want to protect i put this:

If Session("blnIsUserGood") = False or IsNull(Session("blnIsUserGood")) = True then

 'Redirect to unathorised user page

 Response.Redirect"unauthorised_user_page.htm"
End If
at the top of the page!
 
Once log myself i can always enter in the page! There is a max time till i remain logged? There is a way of logout myself? If I don't logout, other users can enter in the protect page, olny type the name file in the IE bar.
 
How can i do?
TNXWink
 


Edited by simoza - 07 February 2005 at 6:47pm
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 07 February 2005 at 6:53pm
the timeout is ussually set to 20 minutes.

the login page application is really designed for a set range of users (ie entered into the database manulally)...

if you want a members only area i have created a login application that allows multiple groups etc. and veriaty of restrictions etc. for more details click the link below.

http://www.breathofair.info/asp/applications


Back to Top
simoza View Drop Down
Groupie
Groupie
Avatar

Joined: 18 November 2004
Status: Offline
Points: 54
Post Options Post Options   Thanks (0) Thanks(0)   Quote simoza Quote  Post ReplyReply Direct Link To This Post Posted: 08 February 2005 at 12:31pm
Thank's dj air, i've downloaded your application...
While i'm testing tha browers make me an error in licence.asp row 77
 
adoCon.Execute(strSQL)
 
with this error: parametri insufficenti, previsto 1
 
What is the error?
 
But when i'm logged with administrator and letmein password, the redirect point to login page again. How can i protect my page?


Edited by simoza - 08 February 2005 at 12:45pm
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 08 February 2005 at 1:53pm
hi i will look into the eror you stated,

this is because its set as the default place for the returns feature. please ask questions within my forums, as this is not my forums,.

if you can gfet into the admin area check code examples page, there is the information on whats required to restrict a page and the methods of restricting ( using certain criteria).
Back to Top
simoza View Drop Down
Groupie
Groupie
Avatar

Joined: 18 November 2004
Status: Offline
Points: 54
Post Options Post Options   Thanks (0) Thanks(0)   Quote simoza Quote  Post ReplyReply Direct Link To This Post Posted: 08 February 2005 at 2:00pm
ok i'll write to your forum...
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.