472,978 Members | 2,222 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,978 software developers and data experts.

How to redirect any page to Login.aspx? I tried but...

Hi,
How to redirect any page to Login.aspx? I tried writting this in
web.config

<authentication mode="Forms">
<forms name="aucoockie" loginUrl="wf_login.aspx"
protection="All" path="/" />
</authentication>

<authorization>
<allow users="?" />
</authorization>

But when I try to access:
http://localhost/MyPath/WebPage1.aspx
I can ! What I am missing to set up?

Aug 9 '06 #1
3 2243
Change this to...

<deny users="?" />

"Big Charles" <ch**********@yahoo.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
Hi,
How to redirect any page to Login.aspx? I tried writting this in
web.config

<authentication mode="Forms">
<forms name="aucoockie" loginUrl="wf_login.aspx"
protection="All" path="/" />
</authentication>

<authorization>
<allow users="?" />
</authorization>

But when I try to access:
http://localhost/MyPath/WebPage1.aspx
I can ! What I am missing to set up?

Aug 9 '06 #2
Thank you. That works partially.

If I type:
http://localhost/MyPath/WebForm1.aspx
Now I am redirecting to wf_login.aspx
However, after I login to the website typing:
http://localhost/MyPath/wf_login.aspx

if I type this on the address:
http://localhost/MyPath/WebForm1.aspx

I can access !

Winista wrote:
Change this to...

<deny users="?" />
Aug 9 '06 #3
Do you want role based access? If so, you need to set up the roles (either
the ASP.NET provider -- assuming 2.0 or a custom membership provider (you
code it)), you will have to set them up and then configure correctly.

Once you are logged in, you should be able to hit the page over and over
again.

If, instead, you mean.

1. Log in
2. Shut down browser
3. Hit page and served without login

Then, you need to turn off the persistent cookies with your
RedirectFromLoginPage() in the login.aspx page.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think outside of the box!
*************************************************
"Big Charles" <ch**********@yahoo.comwrote in message
news:11********************@i42g2000cwa.googlegrou ps.com...
Thank you. That works partially.

If I type:
http://localhost/MyPath/WebForm1.aspx
Now I am redirecting to wf_login.aspx
However, after I login to the website typing:
http://localhost/MyPath/wf_login.aspx

if I type this on the address:
http://localhost/MyPath/WebForm1.aspx

I can access !

Winista wrote:
>Change this to...

<deny users="?" />

Aug 9 '06 #4

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

Similar topics

5
by: PaulThomas | last post by:
Working with XP-Pro and VS.Net I have set my Start Page to "Home.aspx" but the application always starts the "Login" page - - - How can I change the start page to the Home.aspx??? On the login...
3
by: Tom | last post by:
Hi, I have an index.aspx page which includes top.aspx, left.aspx, main.aspx and bottom.aspx. In the left.aspx, there is a login web control - login.ascx. It keeps session of username and role...
1
by: Sospeter | last post by:
Hi Ken, I have done that but still experiencing same problem. Tried the following i.e. turning smartnavigation = false and using server.transfer as below but nothing works. Please help. ...
10
by: GreggTB | last post by:
I've got an page (LOGIN.ASPX) that receives the user's login information. During the page load, it checks the credentials against a database and, if validation is successful, creates an instance of...
6
by: Rudy Soto | last post by:
Can someone please tell me how I can redirect the user back to the start page? Let's say I have the following folders in IIS, with the pages included: Menu login.aspx menu.aspx Customers...
3
by: William Sullivan | last post by:
Have a frameset HTML page (parent) with child .aspx pages. When each of the child pages loads, it checks to see if the user is authenticated, and if not, redirects to the login page: ...
7
by: savvy | last post by:
I able to redirect the user to the index.aspx page after every successful login, but I dont want certain pages outside the folder to have a access to general public. So if they click that...
5
by: venner | last post by:
I'm having an issue with an ASP.NET website after upgrading to ASP.NET 2.0. The website makes use of a central authentication service (CAS) provided at the university I work for. Each page checks...
0
by: daonho | last post by:
Protected Sub Application_BeginRequest(ByVal sender As Object, ByVal e As System.EventArgs) Dim strPath As String = HttpContext.Current.Request.Path() Dim cookie As...
3
by: jasonheath.net | last post by:
I apologize in advance for the length of this post. I wanted to get as much detail as possible in here. We have 1 web app that contains the functionality to do some single sign-on logic. The...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.