Hi
I have several web forms that require users verification by entering a code
before they are allowed in. I have created a separate web form for entering
and verifying user code. How do I incorporate this with web forms that
require security? I am very new to this and would appreciation some
clarification on how this sort of thing works in asp.net.
Thanks
Regards 6 1285
John wrote: Hi
I have several web forms that require users verification by entering a code before they are allowed in. I have created a separate web form for entering and verifying user code. How do I incorporate this with web forms that require security? I am very new to this and would appreciation some clarification on how this sort of thing works in asp.net.
There are several tutorials around, such as this one: http://www.dotnetjunkies.com/quickst...yoverview.aspx
The standard way is to put all protected aspx files in a separate
folder, and protect the folder through web.config.
ASP.NET will do most of the work then.
--
Jos
Hi
Thanks. Gives a good idea of what asp.net presents in terms of security. My
problem is much simpler. Basically it is a staff application form and we
want potential staff to call office first and get the code so we can vet
them. Nothing security critical by a long shot just to keep unqualified
people from sending in applications and wasting our time. Any possibility of
being able to do this simple user authentication? There are several forms
that need it. There is one form that handles input and verification of the
code.
Thanks
Regards
"Jos" <jn************ *@fastmail.fm> wrote in message
news:%2******** *******@tk2msft ngp13.phx.gbl.. . John wrote: Hi
I have several web forms that require users verification by entering a code before they are allowed in. I have created a separate web form for entering and verifying user code. How do I incorporate this with web forms that require security? I am very new to this and would appreciation some clarification on how this sort of thing works in asp.net.
There are several tutorials around, such as this one: http://www.dotnetjunkies.com/quickst...yoverview.aspx
The standard way is to put all protected aspx files in a separate folder, and protect the folder through web.config.
ASP.NET will do most of the work then.
--
Jos
Well John, with my understanding, you can use a session object to track the
user's authenticity in several pages.
on the page, user enters his credentials, set his session variable if he is
authenticated, like
Session["user"]='someValue';
Then on the page, where you need to check if the user is authenticated or
not, check the session variable you set, may be in the Page_Load() event, like
if(Session["user"]=='someValue')
{
// do whatever
}
in that way, the user wouldnt be able to anything on the page, if he doesnt
have that session variable. If he is nnot authenticated, Session["user"]
shouldnt contain any value, since you set it after the user is authenticated.
HTH
Let me knowif you have anymore questions
"John" wrote: Hi
Thanks. Gives a good idea of what asp.net presents in terms of security. My problem is much simpler. Basically it is a staff application form and we want potential staff to call office first and get the code so we can vet them. Nothing security critical by a long shot just to keep unqualified people from sending in applications and wasting our time. Any possibility of being able to do this simple user authentication? There are several forms that need it. There is one form that handles input and verification of the code.
Thanks
Regards
"Jos" <jn************ *@fastmail.fm> wrote in message news:%2******** *******@tk2msft ngp13.phx.gbl.. . John wrote: Hi
I have several web forms that require users verification by entering a code before they are allowed in. I have created a separate web form for entering and verifying user code. How do I incorporate this with web forms that require security? I am very new to this and would appreciation some clarification on how this sort of thing works in asp.net.
There are several tutorials around, such as this one: http://www.dotnetjunkies.com/quickst...yoverview.aspx
The standard way is to put all protected aspx files in a separate folder, and protect the folder through web.config.
ASP.NET will do most of the work then.
--
Jos
What statement do I use to redirect to login page if session page is not
set? As you can see I am very new at this.
Thanks
Regards
"KumarReddu " <Ku********@dis cussions.micros oft.com> wrote in message
news:82******** *************** ***********@mic rosoft.com... Well John, with my understanding, you can use a session object to track
the user's authenticity in several pages. on the page, user enters his credentials, set his session variable if he
is authenticated, like Session["user"]='someValue';
Then on the page, where you need to check if the user is authenticated or not, check the session variable you set, may be in the Page_Load() event,
like if(Session["user"]=='someValue') { // do whatever }
in that way, the user wouldnt be able to anything on the page, if he
doesnt have that session variable. If he is nnot authenticated, Session["user"] shouldnt contain any value, since you set it after the user is
authenticated. HTH Let me knowif you have anymore questions "John" wrote:
Hi
Thanks. Gives a good idea of what asp.net presents in terms of security.
My problem is much simpler. Basically it is a staff application form and
we want potential staff to call office first and get the code so we can vet them. Nothing security critical by a long shot just to keep unqualified people from sending in applications and wasting our time. Any
possibility of being able to do this simple user authentication? There are several
forms that need it. There is one form that handles input and verification of
the code.
Thanks
Regards
"Jos" <jn************ *@fastmail.fm> wrote in message news:%2******** *******@tk2msft ngp13.phx.gbl.. . John wrote: > Hi > > I have several web forms that require users verification by entering > a code before they are allowed in. I have created a separate web
form > for entering and verifying user code. How do I incorporate this with > web forms that require security? I am very new to this and would > appreciation some clarification on how this sort of thing works in > asp.net.
There are several tutorials around, such as this one: http://www.dotnetjunkies.com/quickst...yoverview.aspx The standard way is to put all protected aspx files in a separate folder, and protect the folder through web.config.
ASP.NET will do most of the work then.
--
Jos
You should not be trying to reinvent the wheel. Use forms authentication.
It will take care of all the dirty work for you. http://www.dotnetjunkies.com/quickst...formsauth.aspx
There are plenty of examples out there.
Greg
"John" <Jo**@nospam.in fovis.co.uk> wrote in message
news:ue******** ******@TK2MSFTN GP09.phx.gbl... What statement do I use to redirect to login page if session page is not set? As you can see I am very new at this.
Thanks
Regards
"KumarReddu " <Ku********@dis cussions.micros oft.com> wrote in message news:82******** *************** ***********@mic rosoft.com... Well John, with my understanding, you can use a session object to track the user's authenticity in several pages. on the page, user enters his credentials, set his session variable if he is authenticated, like Session["user"]='someValue';
Then on the page, where you need to check if the user is authenticated or not, check the session variable you set, may be in the Page_Load() event, like if(Session["user"]=='someValue') { // do whatever }
in that way, the user wouldnt be able to anything on the page, if he
doesnt have that session variable. If he is nnot authenticated, Session["user"] shouldnt contain any value, since you set it after the user is authenticated. HTH Let me knowif you have anymore questions "John" wrote:
> Hi > > Thanks. Gives a good idea of what asp.net presents in terms of > security. My > problem is much simpler. Basically it is a staff application form and we > want potential staff to call office first and get the code so we can > vet > them. Nothing security critical by a long shot just to keep unqualified > people from sending in applications and wasting our time. Any possibility of > being able to do this simple user authentication? There are several forms > that need it. There is one form that handles input and verification of the > code. > > Thanks > > Regards > > > "Jos" <jn************ *@fastmail.fm> wrote in message > news:%2******** *******@tk2msft ngp13.phx.gbl.. . > > John wrote: > > > Hi > > > > > > I have several web forms that require users verification by > > > entering > > > a code before they are allowed in. I have created a separate web form > > > for entering and verifying user code. How do I incorporate this > > > with > > > web forms that require security? I am very new to this and would > > > appreciation some clarification on how this sort of thing works in > > > asp.net. > > > > There are several tutorials around, such as this one: > > http://www.dotnetjunkies.com/quickst...yoverview.aspx > > > > The standard way is to put all protected aspx files in a separate > > folder, and protect the folder through web.config. > > > > ASP.NET will do most of the work then. > > > > -- > > > > Jos > > > > > > >
Well i guess Forms Auth could solve ur problem!
GDLUCK
"Greg Burns" wrote: You should not be trying to reinvent the wheel. Use forms authentication. It will take care of all the dirty work for you.
http://www.dotnetjunkies.com/quickst...formsauth.aspx
There are plenty of examples out there.
Greg
"John" <Jo**@nospam.in fovis.co.uk> wrote in message news:ue******** ******@TK2MSFTN GP09.phx.gbl... What statement do I use to redirect to login page if session page is not set? As you can see I am very new at this.
Thanks
Regards
"KumarReddu " <Ku********@dis cussions.micros oft.com> wrote in message news:82******** *************** ***********@mic rosoft.com... Well John, with my understanding, you can use a session object to track the user's authenticity in several pages. on the page, user enters his credentials, set his session variable if he is authenticated, like Session["user"]='someValue';
Then on the page, where you need to check if the user is authenticated or not, check the session variable you set, may be in the Page_Load() event, like if(Session["user"]=='someValue') { // do whatever }
in that way, the user wouldnt be able to anything on the page, if he
doesnt have that session variable. If he is nnot authenticated, Session["user"] shouldnt contain any value, since you set it after the user is authenticated. HTH Let me knowif you have anymore questions "John" wrote:
> Hi > > Thanks. Gives a good idea of what asp.net presents in terms of > security. My > problem is much simpler. Basically it is a staff application form and we > want potential staff to call office first and get the code so we can > vet > them. Nothing security critical by a long shot just to keep unqualified > people from sending in applications and wasting our time. Any possibility of > being able to do this simple user authentication? There are several forms > that need it. There is one form that handles input and verification of the > code. > > Thanks > > Regards > > > "Jos" <jn************ *@fastmail.fm> wrote in message > news:%2******** *******@tk2msft ngp13.phx.gbl.. . > > John wrote: > > > Hi > > > > > > I have several web forms that require users verification by > > > entering > > > a code before they are allowed in. I have created a separate web form > > > for entering and verifying user code. How do I incorporate this > > > with > > > web forms that require security? I am very new to this and would > > > appreciation some clarification on how this sort of thing works in > > > asp.net. > > > > There are several tutorials around, such as this one: > > http://www.dotnetjunkies.com/quickst...yoverview.aspx > > > > The standard way is to put all protected aspx files in a separate > > folder, and protect the folder through web.config. > > > > ASP.NET will do most of the work then. > > > > -- > > > > Jos > > > > > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Marc Poulhiès |
last post by:
Hi,
I'm trying to build a system using HTTPS with python clients that have
to verify the server's identity. From the Python document, it seems that
the server's certificate is not veryfied, and authentication can only be
in the other way (client authentication).
I know usually users only click on 'yes I trust this certificate', but
what if you really care (this is my case)?
I tried to see if the M2Crypto has this possibility, but from...
|
by: |
last post by:
What is a good resource for integrating ASP applications with Active
Directory? I want pages that will allow operations on AD. A prime example is
that I want to have an ASP page that would ask users for their AD password
and verify...
Thanks In Advance!
|
by: Chris Sharman |
last post by:
I'm doing a rough validation of an email address client-side (using js),
but it's not enough - our customer service people are apparently
incapable of typing in an email address without error - we get spaces,
missing '@', multiple '@' which we can field, and simple mis-spellings,
which we can't.
I'd like to automate a 'mailto:' popup for them on submit, along the
lines of "thanks for your email address, just verifying I've got it right"....
|
by: HD |
last post by:
Hi,
I was wondering if there is a way of verifying information that is in the
registry of the user's computer??? Or is there a way of checking if a file
is on the c:\ of the user's computer??
I want to make a certain verification of who is entering my website... but
the IP address is never the same (since it is randomly given to the user)
and I can't use the LOGON_USER variable because the users are not all in the
same domain. And...
|
by: Carter Smith |
last post by:
http://www.icarusindie.com/wiki/index.php/Server-Side_Javascript_Check
Sample source included
This method requires that your pages are PHP enabled and you have mySQL.
Although I suppose you could also use PHP sessions (not cookies as they're
client editable). You could actually use any server side scripting language
such as Perl or ASP and any database like MS SQL Server. I prefer PHP and
MySQL.
| |
by: Reinhold Schalk |
last post by:
Hello,
somewhere i've read that using strong names does assure two things:
1. Assure that the content of the assembly is not modified (that's ok in my
opinion)
2. Assure that the assembly is really from the "fabricator" (?)
If these two point are correct (i'm not sure), i have a problem with point
2.
To assure the authentity of the fabricator, the public key (which is a part
of the manifest) has to be checked against a certificate.
|
by: Bevo |
last post by:
We are developing a desktop application for a customer (VS 2003). The
customer wants us to retrieve the Windows logon information from Active
Directory, then ask the user to verify his password and then assure that this
password is the same as the one given when doing Windows logon. This must be
done before starting the app.
I wonder: whats the best way to accomplish this?
Thanks!
|
by: Geisler, Jim |
last post by:
So, as far as I know, PostgreSQL does not have any way of verifying the loss
of referential integrity.
Are there any recommended methods or utilities for checking referential
integrity in a PostgreSQL database?
|
by: Thomas Hallgren |
last post by:
I'm connected to a database and I want to verify that a username and
password for some user is correct. I know I can verify a users existence
by doing:
select exists(select * from pg_user where usename = $1)
but I would like to verify the correctness of the password as well. Is
there a way to do that using SQL?
Regards,
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |