Print Page | Close Window

Login screen before Forum list?

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=19935
Printed Date: 11 April 2026 at 5:46pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Login screen before Forum list?
Posted By: srta2
Subject: Login screen before Forum list?
Date Posted: 18 May 2006 at 8:47pm
Hi all !
 
I just downloaded these forums. They look pretty good so far.
 
Is there a way to show a login screen (asking for username and password), every time someone access my forums url, instead of showing the whole list of forums, topics, etc.?
 
I only want people to see the forums once they have logged in.
 
Thanks! Smile



Replies:
Posted By: WebWiz-Bruce
Date Posted: 19 May 2006 at 9:48am
In version 8 you can setup forums that Guest account (non-logged in users) don't have read access to forums, then setup the forum so that it is hidden if the user doesn't have access to the forum.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: srta2
Date Posted: 19 May 2006 at 3:22pm
> In version 8 you can setup forums that Guest account (non-logged in users) don't have read access to forums
I did this part
 
> then setup the forum so that it is hidden if the user doesn't have access to the forum.
How do I do this one?
 
 
 


Posted By: srta2
Date Posted: 19 May 2006 at 3:27pm
Actually, I do not want Guests (or non-registered users) to have access to the forum at all, I don't want them to ever reach default.asp or any of the other pages. When anyone tries to access the forum's URL, I want them to be prompted with something like login_user.asp.
 
Thanks


Posted By: WebWiz-Bruce
Date Posted: 19 May 2006 at 6:26pm
Then you will either have to modify the code and create a completely new login system, or look into something like having a password on the directory the forum is in so a password needs to be entered to get to that section of the site.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: srta2
Date Posted: 19 May 2006 at 6:29pm
Mmm, 2 thoughts:
 
Is it possible to disable Guests at all?
 
Is it possible to make login_user.asp the main page, instead of default.asp? In a way such that if someone tries to access any other page, they are redirected to login_user.asp if they are not logged in?
 
Thanks


Posted By: WebWiz-Bruce
Date Posted: 19 May 2006 at 6:45pm
Atually you do have a point.

You could try adding to the common.asp file the following:-

If blnGuest Then Response.Redirect("login_user.asp")

Although you will need to make it so that login_user.asp doesn't keep redirecting to itself, otherwise it will get into a loop and never load the page.

Maybe even worth looking at making a standalone version of the login page, to do this.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: srta2
Date Posted: 19 May 2006 at 9:44pm
> If blnGuest Then Response.Redirect("login_user.asp")
That seems like a good idea
 
> Although you will need to make it so that login_user.asp doesn't keep redirecting to itself
When do you think this may happen? As soon as I log in, I won't be a Guest anymore and I won't be redirected, right?
 
Do you think you can help me a little bit to make this work?
 
Thanks a lot Smile


Posted By: srta2
Date Posted: 19 May 2006 at 10:03pm
Also, for this to work in perfect shape, every time someone logs out, I will need to redirect them to login_user.asp, instead of default.asp... how can I do this?


Posted By: WebWiz-Bruce
Date Posted: 20 May 2006 at 9:14am
As the common.asp file is included in every page if the user is not logged in they will be redirected to the login page no matter what.

The only problem is that the login page also includes the file common.asp, which means that before the user has a chance to login it will redirect to itself, getting caught in an infinite loop.

What you need to do is make it so that the login page can not submit to itself, maybe making a second copy of the common.asp file without the modification, then edit the login_user.asp page and change the include link at the top to the common.asp file to the new un-modified copy you have made of the common.asp file.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: srta2
Date Posted: 20 May 2006 at 7:33pm
Sounds nice! Thanks.
 
I'll try and I'll let you know
 
: )



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net