473,395 Members | 1,452 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,395 software developers and data experts.

Authentication in ASP.NET. Need an opinion.

Hello,

I am developing a web site where half of the pages are public and the
other half are accessible only to registered users.
The pages which are accessible only to registered users have content
which can be visible or not according to the user access level.

I was reading the Tutorial "Role-based Security with Forms
Authentication"
http://www.devhood.com/tutorials/tut...utorial_id=433
but I was surprised by forms authentication in ASP.Net working only in
IE.

I need my authentication system to work in Firefox to so I plan my
authentication this way:

1. Everytime a user logins and its password is successful validated the
following is done:
(a) Session("user") = Username Value
(b) A random string is generated and placed in a database field of
the user record.
(c) The same random string is placed in Session("randomstring")

2. In Page_Load of every restrict access page I check if
Session("randomstring") = Database(Random String Value) for Username in
Session("User")
If everything confirms the user can access the page and the content
is set according to its access level.

3. In Global.asax I set the database field randomstring to Something
when the application ends.

Well this is just an idea. I need an authentication system which
differentiates public and restricted pages and that uses access level to
set content.

Can you send me your opinion?
Is an easy way to do this in ASP.Net and that will work not just in IE?

Can someone help me out or give me some ideas?

Thank You,
Miguel

Nov 19 '05 #1
1 1408
Hello Shapper,

I'm not personally aware of any issues with forms based authentication and
it being exclusive to Internet Explorer. I wonder if perhaps you misread
this statement:

"Windows Authentication gives you this flexibility, but it is not compatible
with anything but Internet Explorer since it uses NTLM, Microsoft's proprietary
authentication system."

If so, keep in mind that Windows Authentication is completely different from
Forms authentication.

--
Matt Berther
http://www.mattberther.com
Hello,

I am developing a web site where half of the pages are public and the
other half are accessible only to registered users.
The pages which are accessible only to registered users have content
which can be visible or not according to the user access level.
I was reading the Tutorial "Role-based Security with Forms
Authentication"
http://www.devhood.com/tutorials/tut...utorial_id=433
but I was surprised by forms authentication in ASP.Net working only in
IE.

I need my authentication system to work in Firefox to so I plan my
authentication this way:

1. Everytime a user logins and its password is successful validated
the
following is done:
(a) Session("user") = Username Value
(b) A random string is generated and placed in a database field of
the user record.
(c) The same random string is placed in Session("randomstring")
2. In Page_Load of every restrict access page I check if
Session("randomstring") = Database(Random String Value) for Username
in
Session("User")
If everything confirms the user can access the page and the
content
is set according to its access level.
3. In Global.asax I set the database field randomstring to Something
when the application ends.

Well this is just an idea. I need an authentication system which
differentiates public and restricted pages and that uses access level
to set content.

Can you send me your opinion?
Is an easy way to do this in ASP.Net and that will work not just in
IE?
Can someone help me out or give me some ideas?

Thank You,
Migue

Nov 19 '05 #2

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

Similar topics

4
by: Bob | last post by:
Hello!!! I am programming a community website, with the usual stuff... some people must subscribe and become members, so they can log in and visit some pages and discuss between them, it's a...
7
by: Michael Foord | last post by:
#!/usr/bin/python -u # 15-09-04 # v1.0.0 # auth_example.py # A simple script manually demonstrating basic authentication. # Copyright Michael Foord # Free to use, modify and relicense. #...
3
by: Nick | last post by:
I am working a new application...well actually a series of applications for my company. They want internal users to be able to go to a site and everything regarding security is transparent,...
9
by: Tom B | last post by:
In my web.config file I've specified Windows for the authentication, in IIS I've set it to Integrated Authentication. But my SQL connection is still showing Anonymous. Is there somewhere else I...
0
by: rshekhtm | last post by:
Hi everyone, I would like to get your opinion on a technique I came up with when faced with the problem of redundant code in every web method (authentication, logging, exception handling)....
1
by: huyuhui | last post by:
Please see the following question: AUTHENTICATION=SERVER_ENCRYPT allows DB2 to encrypt which of the following? A.data B.userid C.password D.userid and password Answer:D
2
by: =?Utf-8?B?V2FubmFiZQ==?= | last post by:
When a user accesses our site, I would like to authenticate them and redirect them to the login page if they are not authenticated. Problem is that the method I am using in global runs more than...
0
by: Ashish | last post by:
Hello All, We have an application in which we are planning to have a virtual url system which is completely driven by configuration files. to accomplish this we need to receive all urls at...
2
by: Mel | last post by:
We have a private website, we call it a portal, where people can login and get quotes and such. When you go to the portal URL (https:// example.url.com) a small dialog appears (I believe this is...
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: 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: 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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.