473,399 Members | 4,192 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,399 software developers and data experts.

adding username/password to website

VMI
How can I add username/password authentication on my site? I have asp.net
2.0. If the user's not logged in, that page should be displayed when I try
to go to any of the pages.
Also, how can I add a "login" timer so that the user is automatically logged
out after X minutes of inactivity?

Thanks.
Aug 21 '06 #1
2 1431

"VMI" <VM*@discussions.microsoft.comwrote in message
news:01**********************************@microsof t.com...
| How can I add username/password authentication on my site? I have asp.net
| 2.0. If the user's not logged in, that page should be displayed when I
try
| to go to any of the pages.
| Also, how can I add a "login" timer so that the user is automatically
logged
| out after X minutes of inactivity?
|
| Thanks.

Please asp related questions are better answered in the aspnet NG's like
microsoft.public.dotnet.framework.aspnet.security or
microsoft.public.dotnet.framework.aspnet, your question does not relate to
CSHARP language at all.

Willy.
Aug 21 '06 #2
"VMI" <VM*@discussions.microsoft.comwrote in message
news:01**********************************@microsof t.com...
How can I add username/password authentication on my site? I have asp.net
2.0. If the user's not logged in, that page should be displayed when I
try
to go to any of the pages.
Store your authentication state in session variables. Each page can check
for proper authentication and redirect if unhappy. This also catches
session timeouts.
Also, how can I add a "login" timer so that the user is automatically
logged
out after X minutes of inactivity?
Set your session timeout appropriately in web.config.

As mentioned, better to ask these questions in the m.p.d.framework.aspnet
NG.

-- Alan
Aug 21 '06 #3

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

Similar topics

7
by: Candice | last post by:
Please somebody help! I've deleted my admin username and password which was initially set at test. Now I can't log into my website as the administrator. How do I put Username and Password back so...
3
by: sharma | last post by:
Hi, I am developing a multilevel marketing system. This system will provide users their own website(virtual). No real disk space. just play by database and account status (paid or not paid). ...
8
by: Noel Volin | last post by:
Anyone who can help here is much appreciated. I am trying to programmatically log onto a website. I am using the code provided in VS for the AuthenticationManager Class example (...
20
by: Bryan | last post by:
hello all... im trying to add a record to an sql db on ms sql server 2000, using vb.net. seems to be working.. except for one thing, one of the columns in the database is a bit datatype, and...
3
by: Co | last post by:
Hi All, I use a website in asp for which I have to type a username and password everytime I want to login. On the form are two fields for typing the username and password and one button LOGIN....
2
by: Ken Fine | last post by:
I want to add the security question and answer security feature to the ChangePassword control. I am aware that this functionality is built into the PasswordRecovery tool. I have implemented the...
9
by: Dhiru1009 | last post by:
Hi guys, I am trying to build a user registration form using PHP and MYSQL but encountring a problem. When I click on submit with empty fields it adds records to database also it doesn't matter...
7
by: Dhiru1009 | last post by:
Hi guys, I need help with validating the user to see if the username exists in database table or not. Here is my code. default.php <form name="form1" action="authenticate.php">
12
by: AdamOnAccess | last post by:
I have a form with a combo box called "cmbWebsites". The combo box row source comes from a select query that returns rows: 0.WebsiteID 1.Website Name 2.Website URL 3.Username 4.Password
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?
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
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
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...
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...
0
isladogs
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...

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.