473,387 Members | 3,750 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 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 2258
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...

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.