Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > how to force to login.aspx first?

Reply
Thread Tools

how to force to login.aspx first?

 
 
HockeyFan
Guest
Posts: n/a
 
      03-02-2006
I thought that if in the web.config, I set

<authentication mode="Windows">
<forms name=".ASPXLOGINCOOKIE" loginUrl="Login.aspx" protection="All"
timeout="30" path="/">
<!-- protection="[All|None|Encryption|Validation]" -->
</forms>
</authentication>
<authorization>
<deny users="?" />
</authorization>

that this would force users to be authenticated, and that Login.aspx would
come up first if not authenticated. And then after authentications, from the
login.aspx.vb, you would do a RedirectFromLogin to take them to the page they
wanted.
Is there something that I need to do to get this to work?

 
Reply With Quote
 
 
 
 
Dominick Baier [DevelopMentor]
Guest
Posts: n/a
 
      03-02-2006
hi,

yes - you have to set

<authentication mode="Forms">


---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

> I thought that if in the web.config, I set
>
> <authentication mode="Windows">
> <forms name=".ASPXLOGINCOOKIE" loginUrl="Login.aspx"
> protection="All"
> timeout="30" path="/">
> <!-- protection="[All|None|Encryption|Validation]" -->
> </forms>
> </authentication>
> <authorization>
> <deny users="?" />
> </authorization>
> that this would force users to be authenticated, and that Login.aspx
> would
> come up first if not authenticated. And then after authentications,
> from the
> login.aspx.vb, you would do a RedirectFromLogin to take them to the
> page they
> wanted.
> Is there something that I need to do to get this to work?



 
Reply With Quote
 
 
 
 
Les Stockton
Guest
Posts: n/a
 
      03-03-2006
did that. not enough.

"Dominick Baier [DevelopMentor]" wrote:

> hi,
>
> yes - you have to set
>
> <authentication mode="Forms">
>
>
> ---------------------------------------
> Dominick Baier - DevelopMentor
> http://www.leastprivilege.com
>
> > I thought that if in the web.config, I set
> >
> > <authentication mode="Windows">
> > <forms name=".ASPXLOGINCOOKIE" loginUrl="Login.aspx"
> > protection="All"
> > timeout="30" path="/">
> > <!-- protection="[All|None|Encryption|Validation]" -->
> > </forms>
> > </authentication>
> > <authorization>
> > <deny users="?" />
> > </authorization>
> > that this would force users to be authenticated, and that Login.aspx
> > would
> > come up first if not authenticated. And then after authentications,
> > from the
> > login.aspx.vb, you would do a RedirectFromLogin to take them to the
> > page they
> > wanted.
> > Is there something that I need to do to get this to work?

>
>
>

 
Reply With Quote
 
Dominick Baier [DevelopMentor]
Guest
Posts: n/a
 
      03-03-2006
sorry - this works for millions of apps

maybe you have to describe your setup more thoroughly.

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

> did that. not enough.
>
> "Dominick Baier [DevelopMentor]" wrote:
>
>> hi,
>>
>> yes - you have to set
>>
>> <authentication mode="Forms">
>>
>> ---------------------------------------
>> Dominick Baier - DevelopMentor
>> http://www.leastprivilege.com
>>> I thought that if in the web.config, I set
>>>
>>> <authentication mode="Windows">
>>> <forms name=".ASPXLOGINCOOKIE" loginUrl="Login.aspx"
>>> protection="All"
>>> timeout="30" path="/">
>>> <!-- protection="[All|None|Encryption|Validation]" -->
>>> </forms>
>>> </authentication>
>>> <authorization>
>>> <deny users="?" />
>>> </authorization>
>>> that this would force users to be authenticated, and that Login.aspx
>>> would
>>> come up first if not authenticated. And then after authentications,
>>> from the
>>> login.aspx.vb, you would do a RedirectFromLogin to take them to the
>>> page they
>>> wanted.
>>> Is there something that I need to do to get this to work?



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Nike air force one, air force 1, air force one low cut, air force one salewholeta@163.com Digital Photography 3 12-31-2008 04:29 PM
Nike Air Force Ones,Air Force One Air Force One-1 lky52193@gmail.com Computer Support 0 01-17-2008 04:40 PM
Nike Air Force Ones,Air Force One Air Force One-1,25th anniversary lky52112@gmail.com Digital Photography 0 01-15-2008 04:46 PM
Nike Air Force Ones,Air Force One Air Force One-1,25th anniversary lky52112@gmail.com Digital Photography 0 01-15-2008 04:34 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57