Ask a Question related to ASP.NET General, Design and Development.
-
joe #1
user access to only selected pages
Some time ago I set up an ASP application that used a login page which
checked a username and password against a database to determine a users
authorization to access certain pages on the site. This was done by setting
a session variable within the application if the user was authorized and
using code one each page for which protection was required to check for the
status of the session variable.
Now I am aware of the various techniques that ASP.NET provides to allow or
preclude access to asp.net apps but frankly I really liked that other one
because it didn't use cookies which many users are a bit afraid of.
My problem is this....I can't remember how I set it up and I don't know
where to look. I think I found the technique in an old ASP book (vs
asp.net).
Does anyone know where I can look to find this technique in the form of
sample code or a tutorial?
and
Is this a viable technique to use in ASP.Net?
Thanks in advance
joe Guest
-
Publisher users can't access pages because "user is editing it" - but they aren't! wtf?
Man, if it isn't one thing, it's another.... I've got DW8.0.2 and the Studio 8 suite. I've created a site in DW and have enabled Contribute... -
How to get user selected text?
I'm trying to build an imput form in Flash MX 2004 Pro that has some very simple formatting tags for HTML. Is it possible to get the string of... -
Help for new user-no pixels selected pop-up
Hi!Hope someone out there can help. I can find no answer to this is the help menu or in the book. Why, when trying to make a selection within a... -
Datagrid: get value from the row selected by user
What I want to do is to retrive the value from the row that was selected by uesr. I added the "Select" command column and linked the select event... -
user access to only certain pages through session variable?
Some time ago I set up an ASP application that used a login page which checked a username and password against a database to determine a users... -
Steve C. Orr, MCSD #2
Re: user access to only selected pages
You can put each group of files into their own subfolders under your root
web application, and then create a web.config for each subfolder with the
appropriate settings in it.
You could alternately do this with a single web.config file by using the
<location> tag.
Here's more info on that and an example:
[url]http://www.dotnetbips.com/displayarticle.aspx?id=117[/url]
--
I hope this helps,
Steve C. Orr, MCSD
[url]http://Steve.Orr.net[/url]
"joe" <contact_by_Newsgroup_only.please> wrote in message
news:u$wvWU1QDHA.2832@TK2MSFTNGP10.phx.gbl...setting> Some time ago I set up an ASP application that used a login page which
> checked a username and password against a database to determine a users
> authorization to access certain pages on the site. This was done bythe> a session variable within the application if the user was authorized and
> using code one each page for which protection was required to check for> status of the session variable.
>
> Now I am aware of the various techniques that ASP.NET provides to allow or
> preclude access to asp.net apps but frankly I really liked that other one
> because it didn't use cookies which many users are a bit afraid of.
>
> My problem is this....I can't remember how I set it up and I don't know
> where to look. I think I found the technique in an old ASP book (vs
> asp.net).
>
> Does anyone know where I can look to find this technique in the form of
> sample code or a tutorial?
>
> and
>
> Is this a viable technique to use in ASP.Net?
>
>
> Thanks in advance
>
>
Steve C. Orr, MCSD Guest
-
joe #3
Re: user access to only selected pages
Thanks Steve I've read that but call me dumb but I don't see how it works.
Perhaps I'm missing something, I don't see the way it :
1) determines which users to permit access to
nor
2) how it maintains the users status once authorized should the user request
additional pages in the protected folder.
Is that done in the web.config file? I don't see any instructions at that
link on how to accomplish this whithout using cookies.
"Steve C. Orr, MCSD" <Steve@Orr.net> wrote in message
news:evYTDo1QDHA.3700@tk2msftngp13.phx.gbl...or> You can put each group of files into their own subfolders under your root
> web application, and then create a web.config for each subfolder with the
> appropriate settings in it.
> You could alternately do this with a single web.config file by using the
> <location> tag.
> Here's more info on that and an example:
> [url]http://www.dotnetbips.com/displayarticle.aspx?id=117[/url]
>
> --
> I hope this helps,
> Steve C. Orr, MCSD
> [url]http://Steve.Orr.net[/url]
>
>
> "joe" <contact_by_Newsgroup_only.please> wrote in message
> news:u$wvWU1QDHA.2832@TK2MSFTNGP10.phx.gbl...> setting> > Some time ago I set up an ASP application that used a login page which
> > checked a username and password against a database to determine a users
> > authorization to access certain pages on the site. This was done by> the> > a session variable within the application if the user was authorized and
> > using code one each page for which protection was required to check for> > status of the session variable.
> >
> > Now I am aware of the various techniques that ASP.NET provides to allowone> > preclude access to asp.net apps but frankly I really liked that other>> > because it didn't use cookies which many users are a bit afraid of.
> >
> > My problem is this....I can't remember how I set it up and I don't know
> > where to look. I think I found the technique in an old ASP book (vs
> > asp.net).
> >
> > Does anyone know where I can look to find this technique in the form of
> > sample code or a tutorial?
> >
> > and
> >
> > Is this a viable technique to use in ASP.Net?
> >
> >
> > Thanks in advance
> >
> >
>
joe Guest
-
Steve C. Orr, MCSD #4
Re: user access to only selected pages
It uses forms authentication, which uses cookies.
Here's more info on basic forms authentication:
[url]http://www.dotnetbips.com/displayarticle.aspx?id=9[/url]
Of course you can also set Forms Authentication to work if the user has
cookies turned off by setting the cookieless="true" in your web.config.
Then it will munge the session id into the URL automatically.
You can specify which files and folders to allow to to which users in your
web.config file.
There is a link to sample code that you can download and play with.
[url]http://www.dotnetbips.com/displayarticle.aspx?id=117[/url]
--
I hope this helps,
Steve C. Orr, MCSD
[url]http://Steve.Orr.net[/url]
"joe" <contact_by_Newsgroup_only.please> wrote in message
news:u4AXzv1QDHA.304@tk2msftngp13.phx.gbl...request> Thanks Steve I've read that but call me dumb but I don't see how it works.
> Perhaps I'm missing something, I don't see the way it :
>
> 1) determines which users to permit access to
>
> nor
>
> 2) how it maintains the users status once authorized should the userroot> additional pages in the protected folder.
>
>
> Is that done in the web.config file? I don't see any instructions at that
> link on how to accomplish this whithout using cookies.
>
>
>
>
>
>
> "Steve C. Orr, MCSD" <Steve@Orr.net> wrote in message
> news:evYTDo1QDHA.3700@tk2msftngp13.phx.gbl...> > You can put each group of files into their own subfolders under yourthe> > web application, and then create a web.config for each subfolder withusers> > appropriate settings in it.
> > You could alternately do this with a single web.config file by using the
> > <location> tag.
> > Here's more info on that and an example:
> > [url]http://www.dotnetbips.com/displayarticle.aspx?id=117[/url]
> >
> > --
> > I hope this helps,
> > Steve C. Orr, MCSD
> > [url]http://Steve.Orr.net[/url]
> >
> >
> > "joe" <contact_by_Newsgroup_only.please> wrote in message
> > news:u$wvWU1QDHA.2832@TK2MSFTNGP10.phx.gbl...> > > Some time ago I set up an ASP application that used a login page which
> > > checked a username and password against a database to determine aand> > setting> > > authorization to access certain pages on the site. This was done by> > > a session variable within the application if the user was authorizedfor> > > using code one each page for which protection was required to checkallow> > the> > > status of the session variable.
> > >
> > > Now I am aware of the various techniques that ASP.NET provides toknow> or> one> > > preclude access to asp.net apps but frankly I really liked that other> > > because it didn't use cookies which many users are a bit afraid of.
> > >
> > > My problem is this....I can't remember how I set it up and I don'tof> > > where to look. I think I found the technique in an old ASP book (vs
> > > asp.net).
> > >
> > > Does anyone know where I can look to find this technique in the form>> >> > > sample code or a tutorial?
> > >
> > > and
> > >
> > > Is this a viable technique to use in ASP.Net?
> > >
> > >
> > > Thanks in advance
> > >
> > >
> >
>
Steve C. Orr, MCSD Guest
-
joe #5
Re: user access to only selected pages
Thanks Steve...I'll check it out.
"Steve C. Orr, MCSD" <Steve@Orr.net> wrote in message
news:OkPIQ31QDHA.1988@TK2MSFTNGP12.phx.gbl...works.> It uses forms authentication, which uses cookies.
> Here's more info on basic forms authentication:
> [url]http://www.dotnetbips.com/displayarticle.aspx?id=9[/url]
>
> Of course you can also set Forms Authentication to work if the user has
> cookies turned off by setting the cookieless="true" in your web.config.
> Then it will munge the session id into the URL automatically.
> You can specify which files and folders to allow to to which users in your
> web.config file.
> There is a link to sample code that you can download and play with.
> [url]http://www.dotnetbips.com/displayarticle.aspx?id=117[/url]
>
> --
> I hope this helps,
> Steve C. Orr, MCSD
> [url]http://Steve.Orr.net[/url]
>
>
>
> "joe" <contact_by_Newsgroup_only.please> wrote in message
> news:u4AXzv1QDHA.304@tk2msftngp13.phx.gbl...> > Thanks Steve I've read that but call me dumb but I don't see how itthat> request> > Perhaps I'm missing something, I don't see the way it :
> >
> > 1) determines which users to permit access to
> >
> > nor
> >
> > 2) how it maintains the users status once authorized should the user> > additional pages in the protected folder.
> >
> >
> > Is that done in the web.config file? I don't see any instructions atthe> root> > link on how to accomplish this whithout using cookies.
> >
> >
> >
> >
> >
> >
> > "Steve C. Orr, MCSD" <Steve@Orr.net> wrote in message
> > news:evYTDo1QDHA.3700@tk2msftngp13.phx.gbl...> > > You can put each group of files into their own subfolders under your> the> > > web application, and then create a web.config for each subfolder with> > > appropriate settings in it.
> > > You could alternately do this with a single web.config file by usingwhich> > > <location> tag.
> > > Here's more info on that and an example:
> > > [url]http://www.dotnetbips.com/displayarticle.aspx?id=117[/url]
> > >
> > > --
> > > I hope this helps,
> > > Steve C. Orr, MCSD
> > > [url]http://Steve.Orr.net[/url]
> > >
> > >
> > > "joe" <contact_by_Newsgroup_only.please> wrote in message
> > > news:u$wvWU1QDHA.2832@TK2MSFTNGP10.phx.gbl...
> > > > Some time ago I set up an ASP application that used a login pageother> users> > > > checked a username and password against a database to determine a> and> > > > authorization to access certain pages on the site. This was done by
> > > setting
> > > > a session variable within the application if the user was authorized> for> > > > using code one each page for which protection was required to check> allow> > > the
> > > > status of the session variable.
> > > >
> > > > Now I am aware of the various techniques that ASP.NET provides to> > or> > > > preclude access to asp.net apps but frankly I really liked that> know> > one> > > > because it didn't use cookies which many users are a bit afraid of.
> > > >
> > > > My problem is this....I can't remember how I set it up and I don't> of> > > > where to look. I think I found the technique in an old ASP book (vs
> > > > asp.net).
> > > >
> > > > Does anyone know where I can look to find this technique in the form>> >> > > > sample code or a tutorial?
> > > >
> > > > and
> > > >
> > > > Is this a viable technique to use in ASP.Net?
> > > >
> > > >
> > > > Thanks in advance
> > > >
> > > >
> > >
> > >
> >
>
joe Guest
-
joe #6
Re: user access to only selected pages
I see they have put the user names and passwords in the login.vb file. Isn't
this (hard coding) a potential security problem?
I realize it is not presented in the HTML on the client and the server does
all the work but it just makes me a bit uncomfortable.
Or am I wrong?
"joe" <contact_by_Newsgroup_only.please> wrote in message
news:eFxu791QDHA.3700@tk2msftngp13.phx.gbl...your> Thanks Steve...I'll check it out.
>
>
> "Steve C. Orr, MCSD" <Steve@Orr.net> wrote in message
> news:OkPIQ31QDHA.1988@TK2MSFTNGP12.phx.gbl...> > It uses forms authentication, which uses cookies.
> > Here's more info on basic forms authentication:
> > [url]http://www.dotnetbips.com/displayarticle.aspx?id=9[/url]
> >
> > Of course you can also set Forms Authentication to work if the user has
> > cookies turned off by setting the cookieless="true" in your web.config.
> > Then it will munge the session id into the URL automatically.
> > You can specify which files and folders to allow to to which users inwith> works.> > web.config file.
> > There is a link to sample code that you can download and play with.
> > [url]http://www.dotnetbips.com/displayarticle.aspx?id=117[/url]
> >
> > --
> > I hope this helps,
> > Steve C. Orr, MCSD
> > [url]http://Steve.Orr.net[/url]
> >
> >
> >
> > "joe" <contact_by_Newsgroup_only.please> wrote in message
> > news:u4AXzv1QDHA.304@tk2msftngp13.phx.gbl...> > > Thanks Steve I've read that but call me dumb but I don't see how it> that> > request> > > Perhaps I'm missing something, I don't see the way it :
> > >
> > > 1) determines which users to permit access to
> > >
> > > nor
> > >
> > > 2) how it maintains the users status once authorized should the user> > > additional pages in the protected folder.
> > >
> > >
> > > Is that done in the web.config file? I don't see any instructions at> > root> > > link on how to accomplish this whithout using cookies.
> > >
> > >
> > >
> > >
> > >
> > >
> > > "Steve C. Orr, MCSD" <Steve@Orr.net> wrote in message
> > > news:evYTDo1QDHA.3700@tk2msftngp13.phx.gbl...
> > > > You can put each group of files into their own subfolders under your> > > > web application, and then create a web.config for each subfolderby> the> > the> > > > appropriate settings in it.
> > > > You could alternately do this with a single web.config file by using> which> > > > <location> tag.
> > > > Here's more info on that and an example:
> > > > [url]http://www.dotnetbips.com/displayarticle.aspx?id=117[/url]
> > > >
> > > > --
> > > > I hope this helps,
> > > > Steve C. Orr, MCSD
> > > > [url]http://Steve.Orr.net[/url]
> > > >
> > > >
> > > > "joe" <contact_by_Newsgroup_only.please> wrote in message
> > > > news:u$wvWU1QDHA.2832@TK2MSFTNGP10.phx.gbl...
> > > > > Some time ago I set up an ASP application that used a login page> > users> > > > > checked a username and password against a database to determine a> > > > > authorization to access certain pages on the site. This was doneauthorized> > > > setting
> > > > > a session variable within the application if the user wascheck> > and> > > > > using code one each page for which protection was required toof.> other> > for> > allow> > > > the
> > > > > status of the session variable.
> > > > >
> > > > > Now I am aware of the various techniques that ASP.NET provides to> > > or
> > > > > preclude access to asp.net apps but frankly I really liked that> > > one
> > > > > because it didn't use cookies which many users are a bit afraid(vs> > know> > > > >
> > > > > My problem is this....I can't remember how I set it up and I don't> > > > > where to look. I think I found the technique in an old ASP bookform> > > > > asp.net).
> > > > >
> > > > > Does anyone know where I can look to find this technique in the>> > of> >> > > > > sample code or a tutorial?
> > > > >
> > > > > and
> > > > >
> > > > > Is this a viable technique to use in ASP.Net?
> > > > >
> > > > >
> > > > > Thanks in advance
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
>
joe Guest
-
Vincent V #7
Re: user access to only selected pages
you should buy a book it would save time posting
"joe" <contact_by_Newsgroup_only.please> wrote in message
news:#LPVhI2QDHA.1560@TK2MSFTNGP12.phx.gbl...Isn't> I see they have put the user names and passwords in the login.vb file.does> this (hard coding) a potential security problem?
>
> I realize it is not presented in the HTML on the client and the serverhas> all the work but it just makes me a bit uncomfortable.
>
> Or am I wrong?
>
>
>
>
> "joe" <contact_by_Newsgroup_only.please> wrote in message
> news:eFxu791QDHA.3700@tk2msftngp13.phx.gbl...> > Thanks Steve...I'll check it out.
> >
> >
> > "Steve C. Orr, MCSD" <Steve@Orr.net> wrote in message
> > news:OkPIQ31QDHA.1988@TK2MSFTNGP12.phx.gbl...> > > It uses forms authentication, which uses cookies.
> > > Here's more info on basic forms authentication:
> > > [url]http://www.dotnetbips.com/displayarticle.aspx?id=9[/url]
> > >
> > > Of course you can also set Forms Authentication to work if the userweb.config.> > > cookies turned off by setting the cookieless="true" in yourat> your> > > Then it will munge the session id into the URL automatically.
> > > You can specify which files and folders to allow to to which users in> > works.> > > web.config file.
> > > There is a link to sample code that you can download and play with.
> > > [url]http://www.dotnetbips.com/displayarticle.aspx?id=117[/url]
> > >
> > > --
> > > I hope this helps,
> > > Steve C. Orr, MCSD
> > > [url]http://Steve.Orr.net[/url]
> > >
> > >
> > >
> > > "joe" <contact_by_Newsgroup_only.please> wrote in message
> > > news:u4AXzv1QDHA.304@tk2msftngp13.phx.gbl...
> > > > Thanks Steve I've read that but call me dumb but I don't see how it> > > > Perhaps I'm missing something, I don't see the way it :
> > > >
> > > > 1) determines which users to permit access to
> > > >
> > > > nor
> > > >
> > > > 2) how it maintains the users status once authorized should the user
> > > request
> > > > additional pages in the protected folder.
> > > >
> > > >
> > > > Is that done in the web.config file? I don't see any instructionsyour> > that> > > > link on how to accomplish this whithout using cookies.
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > "Steve C. Orr, MCSD" <Steve@Orr.net> wrote in message
> > > > news:evYTDo1QDHA.3700@tk2msftngp13.phx.gbl...
> > > > > You can put each group of files into their own subfolders underusing> with> > > root
> > > > > web application, and then create a web.config for each subfolder> > > the
> > > > > appropriate settings in it.
> > > > > You could alternately do this with a single web.config file bya> > the> > which> > > > > <location> tag.
> > > > > Here's more info on that and an example:
> > > > > [url]http://www.dotnetbips.com/displayarticle.aspx?id=117[/url]
> > > > >
> > > > > --
> > > > > I hope this helps,
> > > > > Steve C. Orr, MCSD
> > > > > [url]http://Steve.Orr.net[/url]
> > > > >
> > > > >
> > > > > "joe" <contact_by_Newsgroup_only.please> wrote in message
> > > > > news:u$wvWU1QDHA.2832@TK2MSFTNGP10.phx.gbl...
> > > > > > Some time ago I set up an ASP application that used a login page> > > > > > checked a username and password against a database to determineto> by> > > users
> > > > > > authorization to access certain pages on the site. This was done> authorized> > > > > setting
> > > > > > a session variable within the application if the user was> check> > > and
> > > > > > using code one each page for which protection was required to> > > for
> > > > > the
> > > > > > status of the session variable.
> > > > > >
> > > > > > Now I am aware of the various techniques that ASP.NET providesdon't> of.> > other> > > allow
> > > > or
> > > > > > preclude access to asp.net apps but frankly I really liked that> > > > one
> > > > > > because it didn't use cookies which many users are a bit afraid> > > > > >
> > > > > > My problem is this....I can't remember how I set it up and I> (vs> > > know
> > > > > > where to look. I think I found the technique in an old ASP book> form> > > > > > asp.net).
> > > > > >
> > > > > > Does anyone know where I can look to find this technique in the>> >> > > of
> > > > > > sample code or a tutorial?
> > > > > >
> > > > > > and
> > > > > >
> > > > > > Is this a viable technique to use in ASP.Net?
> > > > > >
> > > > > >
> > > > > > Thanks in advance
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
>
Vincent V Guest
-
joe #8
Re: user access to only selected pages
I don't mind taking the time posting but I do understand that for some
reading is a bit more difficult than it is for others.
"Vincent V" <vincentv@-n0-5pam-optushome.com.au> wrote in message
news:O2kefR2QDHA.3880@tk2msftngp13.phx.gbl...in> you should buy a book it would save time posting
>
>
> "joe" <contact_by_Newsgroup_only.please> wrote in message
> news:#LPVhI2QDHA.1560@TK2MSFTNGP12.phx.gbl...> Isn't> > I see they have put the user names and passwords in the login.vb file.> does> > this (hard coding) a potential security problem?
> >
> > I realize it is not presented in the HTML on the client and the server> has> > all the work but it just makes me a bit uncomfortable.
> >
> > Or am I wrong?
> >
> >
> >
> >
> > "joe" <contact_by_Newsgroup_only.please> wrote in message
> > news:eFxu791QDHA.3700@tk2msftngp13.phx.gbl...> > > Thanks Steve...I'll check it out.
> > >
> > >
> > > "Steve C. Orr, MCSD" <Steve@Orr.net> wrote in message
> > > news:OkPIQ31QDHA.1988@TK2MSFTNGP12.phx.gbl...
> > > > It uses forms authentication, which uses cookies.
> > > > Here's more info on basic forms authentication:
> > > > [url]http://www.dotnetbips.com/displayarticle.aspx?id=9[/url]
> > > >
> > > > Of course you can also set Forms Authentication to work if the user> web.config.> > > > cookies turned off by setting the cookieless="true" in your> > > > Then it will munge the session id into the URL automatically.
> > > > You can specify which files and folders to allow to to which usersit> > your> > > > web.config file.
> > > > There is a link to sample code that you can download and play with.
> > > > [url]http://www.dotnetbips.com/displayarticle.aspx?id=117[/url]
> > > >
> > > > --
> > > > I hope this helps,
> > > > Steve C. Orr, MCSD
> > > > [url]http://Steve.Orr.net[/url]
> > > >
> > > >
> > > >
> > > > "joe" <contact_by_Newsgroup_only.please> wrote in message
> > > > news:u4AXzv1QDHA.304@tk2msftngp13.phx.gbl...
> > > > > Thanks Steve I've read that but call me dumb but I don't see howuser> > > works.
> > > > > Perhaps I'm missing something, I don't see the way it :
> > > > >
> > > > > 1) determines which users to permit access to
> > > > >
> > > > > nor
> > > > >
> > > > > 2) how it maintains the users status once authorized should thepage> at> > > > request
> > > > > additional pages in the protected folder.
> > > > >
> > > > >
> > > > > Is that done in the web.config file? I don't see any instructions> your> > > that
> > > > > link on how to accomplish this whithout using cookies.
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > "Steve C. Orr, MCSD" <Steve@Orr.net> wrote in message
> > > > > news:evYTDo1QDHA.3700@tk2msftngp13.phx.gbl...
> > > > > > You can put each group of files into their own subfolders under> using> > with> > > > root
> > > > > > web application, and then create a web.config for each subfolder> > > > the
> > > > > > appropriate settings in it.
> > > > > > You could alternately do this with a single web.config file by> > > the
> > > > > > <location> tag.
> > > > > > Here's more info on that and an example:
> > > > > > [url]http://www.dotnetbips.com/displayarticle.aspx?id=117[/url]
> > > > > >
> > > > > > --
> > > > > > I hope this helps,
> > > > > > Steve C. Orr, MCSD
> > > > > > [url]http://Steve.Orr.net[/url]
> > > > > >
> > > > > >
> > > > > > "joe" <contact_by_Newsgroup_only.please> wrote in message
> > > > > > news:u$wvWU1QDHA.2832@TK2MSFTNGP10.phx.gbl...
> > > > > > > Some time ago I set up an ASP application that used a logindetermine> > > which
> > > > > > > checked a username and password against a database todone> a> > > > users
> > > > > > > authorization to access certain pages on the site. This wasthat> to> > by> > authorized> > > > > > setting
> > > > > > > a session variable within the application if the user was> > check> > > > and
> > > > > > > using code one each page for which protection was required to> > > > for
> > > > > > the
> > > > > > > status of the session variable.
> > > > > > >
> > > > > > > Now I am aware of the various techniques that ASP.NET provides> > > > allow
> > > > > or
> > > > > > > preclude access to asp.net apps but frankly I really likedafraid> > > other
> > > > > one
> > > > > > > because it didn't use cookies which many users are a bitbook> don't> > of.> > > > > > >
> > > > > > > My problem is this....I can't remember how I set it up and I> > > > know
> > > > > > > where to look. I think I found the technique in an old ASPthe> > (vs> > > > > > > asp.net).
> > > > > > >
> > > > > > > Does anyone know where I can look to find this technique in>> > form> >> > > > of
> > > > > > > sample code or a tutorial?
> > > > > > >
> > > > > > > and
> > > > > > >
> > > > > > > Is this a viable technique to use in ASP.Net?
> > > > > > >
> > > > > > >
> > > > > > > Thanks in advance
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
>
joe Guest
-
joe #9
Re: user access to only selected pages
Thanks again Steve.
"Steve C. Orr, MCSD" <Steve@Orr.net> wrote in message
news:O$h5cU2QDHA.2636@TK2MSFTNGP10.phx.gbl...[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT03.asp[/url]> You can use a database for this if you prefer.
> Here are some examples:
>in> [url]http://www.4guysfromrolla.com/webtech/121901-1.shtml[/url]
>
> --
> I hope this helps,
> Steve C. Orr, MCSD
> [url]http://Steve.Orr.net[/url]
>
>
> "joe" <contact_by_Newsgroup_only.please> wrote in message
> news:%23LPVhI2QDHA.1560@TK2MSFTNGP12.phx.gbl...> Isn't> > I see they have put the user names and passwords in the login.vb file.> does> > this (hard coding) a potential security problem?
> >
> > I realize it is not presented in the HTML on the client and the server> has> > all the work but it just makes me a bit uncomfortable.
> >
> > Or am I wrong?
> >
> >
> >
> >
> > "joe" <contact_by_Newsgroup_only.please> wrote in message
> > news:eFxu791QDHA.3700@tk2msftngp13.phx.gbl...> > > Thanks Steve...I'll check it out.
> > >
> > >
> > > "Steve C. Orr, MCSD" <Steve@Orr.net> wrote in message
> > > news:OkPIQ31QDHA.1988@TK2MSFTNGP12.phx.gbl...
> > > > It uses forms authentication, which uses cookies.
> > > > Here's more info on basic forms authentication:
> > > > [url]http://www.dotnetbips.com/displayarticle.aspx?id=9[/url]
> > > >
> > > > Of course you can also set Forms Authentication to work if the user> web.config.> > > > cookies turned off by setting the cookieless="true" in your> > > > Then it will munge the session id into the URL automatically.
> > > > You can specify which files and folders to allow to to which usersit> > your> > > > web.config file.
> > > > There is a link to sample code that you can download and play with.
> > > > [url]http://www.dotnetbips.com/displayarticle.aspx?id=117[/url]
> > > >
> > > > --
> > > > I hope this helps,
> > > > Steve C. Orr, MCSD
> > > > [url]http://Steve.Orr.net[/url]
> > > >
> > > >
> > > >
> > > > "joe" <contact_by_Newsgroup_only.please> wrote in message
> > > > news:u4AXzv1QDHA.304@tk2msftngp13.phx.gbl...
> > > > > Thanks Steve I've read that but call me dumb but I don't see howuser> > > works.
> > > > > Perhaps I'm missing something, I don't see the way it :
> > > > >
> > > > > 1) determines which users to permit access to
> > > > >
> > > > > nor
> > > > >
> > > > > 2) how it maintains the users status once authorized should thepage> at> > > > request
> > > > > additional pages in the protected folder.
> > > > >
> > > > >
> > > > > Is that done in the web.config file? I don't see any instructions> your> > > that
> > > > > link on how to accomplish this whithout using cookies.
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > "Steve C. Orr, MCSD" <Steve@Orr.net> wrote in message
> > > > > news:evYTDo1QDHA.3700@tk2msftngp13.phx.gbl...
> > > > > > You can put each group of files into their own subfolders under> using> > with> > > > root
> > > > > > web application, and then create a web.config for each subfolder> > > > the
> > > > > > appropriate settings in it.
> > > > > > You could alternately do this with a single web.config file by> > > the
> > > > > > <location> tag.
> > > > > > Here's more info on that and an example:
> > > > > > [url]http://www.dotnetbips.com/displayarticle.aspx?id=117[/url]
> > > > > >
> > > > > > --
> > > > > > I hope this helps,
> > > > > > Steve C. Orr, MCSD
> > > > > > [url]http://Steve.Orr.net[/url]
> > > > > >
> > > > > >
> > > > > > "joe" <contact_by_Newsgroup_only.please> wrote in message
> > > > > > news:u$wvWU1QDHA.2832@TK2MSFTNGP10.phx.gbl...
> > > > > > > Some time ago I set up an ASP application that used a logindetermine> > > which
> > > > > > > checked a username and password against a database todone> a> > > > users
> > > > > > > authorization to access certain pages on the site. This wasthat> to> > by> > authorized> > > > > > setting
> > > > > > > a session variable within the application if the user was> > check> > > > and
> > > > > > > using code one each page for which protection was required to> > > > for
> > > > > > the
> > > > > > > status of the session variable.
> > > > > > >
> > > > > > > Now I am aware of the various techniques that ASP.NET provides> > > > allow
> > > > > or
> > > > > > > preclude access to asp.net apps but frankly I really likedafraid> > > other
> > > > > one
> > > > > > > because it didn't use cookies which many users are a bitbook> don't> > of.> > > > > > >
> > > > > > > My problem is this....I can't remember how I set it up and I> > > > know
> > > > > > > where to look. I think I found the technique in an old ASPthe> > (vs> > > > > > > asp.net).
> > > > > > >
> > > > > > > Does anyone know where I can look to find this technique in>> > form> >> > > > of
> > > > > > > sample code or a tutorial?
> > > > > > >
> > > > > > > and
> > > > > > >
> > > > > > > Is this a viable technique to use in ASP.Net?
> > > > > > >
> > > > > > >
> > > > > > > Thanks in advance
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
>
joe Guest



Reply With Quote

