473,788 Members | 2,898 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Redirect visitors to registration page

Hi,

I've set up forms based authentication. What I'm not sure how to do is
redirect visitors (who have not logged on) to the registration page, when
they request a web page they are not authorised to view.

Can anyone help me?

Thanks for your time

Paul Evans
Nov 19 '05 #1
3 1200
"Paul Evans" <pa*********@bt internet.com> wrote in message
news:uR******** ******@TK2MSFTN GP10.phx.gbl...
Hi,

I've set up forms based authentication. What I'm not sure how to do is
redirect visitors (who have not logged on) to the registration page, when
they request a web page they are not authorised to view.


If you have Forms Authentication set up properly and if you have
Authorization set up so that the user can't access a page then Forms
Authentication will redirect the user to the login page. Is this not
happening?

John Saunders
Nov 19 '05 #2
In the authentication element, add a forms element to tell the app what form
to use for login, like this...

<authenticati on mode="Forms">
<forms loginUrl="Regis tration.aspx" />
</authentication>

Also, make sure you exclude only unauthenticated users from the rest of the
site by adding an authorization element inside your configuration element,
like this...

<configuratio n>
...
<authorizatio n>
<deny users="?" />
</authorization>
...
</configuration>

The '?' represents all unauthenticated users.

<itinerantCod er />

"Paul Evans" wrote:
Hi,

I've set up forms based authentication. What I'm not sure how to do is
redirect visitors (who have not logged on) to the registration page, when
they request a web page they are not authorised to view.

Can anyone help me?

Thanks for your time

Paul Evans

Nov 19 '05 #3
Well i think itinerantCoder has givben u a detailed answer..
GDluck
Patrick

"Paul Evans" wrote:
Hi,

I've set up forms based authentication. What I'm not sure how to do is
redirect visitors (who have not logged on) to the registration page, when
they request a web page they are not authorised to view.

Can anyone help me?

Thanks for your time

Paul Evans

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

25
837
by: J.A. | last post by:
Hi, I'm new with PHP I want to create a page to redirect links, for example: http://www.php.net/link.php?link_id=2005 ....and be redirect to a URL, from my databse (MySQL), like it follow: http://www.php.net/pro/beta/etc/etc/index.php I have this, but did not work, what can I do?
6
4032
by: peter | last post by:
hello, who knows if there is ascript that detects de country or language. I need this to sent for example dutch people to a dutch site and german to a german site. thanx peter
3
1220
by: David | last post by:
Hi, I notice that one image appears to be high on the entry pages for my site weblogs. My guess is that all these visitors ever see of the site is the image. IS it possible to redirect these visitors to a different page that will have the original content they clicked for, plus a link to the rest of the site instead of just viewing the .jpg?
9
2860
by: jonathanthio | last post by:
Say if the visitors come from German I'd redirect them to German website, if vistors from USA, I'd redirect them to USA websites. Is there a way to do this with javascript?
2
1500
by: enterthe | last post by:
Hey, I have lots of visitors to my site from search engines, but they don't always get sent to the right page. So... based on the search query of the refering search page (e.g. google or yahoo) how can I redirect the user to another page. For example, if they searched for "browsers" and got to my website then I'd like to redirect them to my page about web browsers.
4
1780
by: Greg Scharlemann | last post by:
I thought I had a workable approach to specifing which pages required a redirect in a config file, but it appears the way I'm attempting to do it is not going to work. The idea is that I can specify in the config file all of the pages that require a user to login otherwise the page will redirect if the user is not logged in. config.php looks like this: ----------------------
3
4418
by: johnny | last post by:
hi all! I am starting to study the best way to track site visitors. Logfiles stats which come with every web hosting, have little metrics to be analyzed and also problems with cached pages which are not seen. I thought to use php and cookies to track returning visitors, however I see that all pro solutions use javascript to set cookies. Now since I prefer to avoid js as much as I can cause they can be blocked by browser settings, is it...
21
1851
by: John | last post by:
Hi, I updated a site and changed the file extensions from .html to .php. Now i noticed that the google does find the old .html pages but since they're not there anymore... they can't be found. Are there any way of (easily, without messing the site ;)) redirecting those links to the main site?
0
9498
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10364
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10172
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8993
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7517
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6750
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5398
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4069
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3670
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.