473,513 Members | 4,116 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Authentication

93 New Member
Hi, i am new to .Net, so i was wondering how can you tell if the form has been authenticated. The probelm is that we have a system that, has a few bugs, i have been left to figure out why when you press on a link in a control, why it goes to the wrong webform. I think i know what it is, as it is all done in different folders so i was just going, to add a conditional statement saying

If session is authenticated then
redirect to logout
end if

Because the problem only seems to occur once the user has logged in

thanks in advance if any one can help
Jun 22 '07 #1
6 884
Frinavale
9,735 Recognized Expert Moderator Expert
Hi, i am new to .Net, so i was wondering how can you tell if the form has been authenticated. The probelm is that we have a system that, has a few bugs, i have been left to figure out why when you press on a link in a control, why it goes to the wrong webform. I think i know what it is, as it is all done in different folders so i was just going, to add a conditional statement saying

If session is authenticated then
redirect to logout
end if

Because the problem only seems to occur once the user has logged in

thanks in advance if any one can help
I don't fully understand your problem.
Could you please explain what you mean by your link "going to the wrong web form"?

How are you checking if the session is authenticated?

-Frinny
Jun 22 '07 #2
Taftheman
93 New Member
I don't fully understand your problem.
Could you please explain what you mean by your link "going to the wrong web form"?

How are you checking if the session is authenticated?

-Frinny
his i have a linke to A but when the users log in the page redirects then to B however the address bar still has A written in it. Not only that but the layout of B has become A , just the data and the title of the page and any writing is from page B

quite confusing i know
Jun 26 '07 #3
kenobewan
4,871 Recognized Expert Specialist
I would like to ask you what is authentication and what constitutes not being authenticated? If your user is authenticated they are directed to the logout page. I suggest studying .net first and have an understanding of what it is you are trying to achieve. Just my opinion.
Jun 26 '07 #4
Frinavale
9,735 Recognized Expert Moderator Expert
his i have a linke to A but when the users log in the page redirects then to B however the address bar still has A written in it. Not only that but the layout of B has become A , just the data and the title of the page and any writing is from page B

quite confusing i know
Yes quite confusing, I'm still confused.

It sounds like you're using Server.Transfer to direct people to other pages...when you use that the address does not change in the bar.

Is this a problem?

I don't understand what you mean by "the layout of B has become A".

-Frinny
Jun 26 '07 #5
amitdotagarwal
2 New Member
for this simply first establish the conection strin then after
by select commnad compare text box data with your databae
Jun 26 '07 #6
Frinavale
9,735 Recognized Expert Moderator Expert
for this simply first establish the conection strin then after
by select commnad compare text box data with your databae
Hi amitdotagarwal :)

I'm not sure this problem involves a database but your suggestion is good in that quite often when we want to authenticate a user we check what the user has supplied against the password hash stored in a database. Usually when this method is used we're using Forms authentication along with some Cryptographic packages that .NET supplies for password protection purposes.

I don't think that Taftheman's problem is with checking the user's credentials. I'm pretty sure it has something to do with Taftheman is transferring the user between pages in the application.

-Frinny
Jun 27 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

7
9263
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. # No warranty express or implied for the accuracy, fitness to purpose
8
3680
by: Bob Everland | last post by:
I have an application that is ISAPI and the only way to secure it is through NT permissions. I need to have a way to login to windows authentication so that when I get to the ISAPI application no boxes come up. I want an ASP page to sit between the user and the ISAPI application. The rest of my application is using authentication that is...
6
4797
by: Billy Jacobs | last post by:
I have a website which has both secure and non-secure pages. I want to uses forms authentication. How do I accomplish this? Originally I had my web.config file in the root with Forms Authentication set up and it worked just fine. Then I realized that I needed to have some pages unsecure. I then created 2 directories. One named Secure and...
9
2495
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 need to check? Thanks Win 2003, SQL Server 2000
0
4199
by: Anonieko Ramos | last post by:
ASP.NET Forms Authentication Best Practices Dr. Dobb's Journal February 2004 Protecting user information is critical By Douglas Reilly Douglas is the author of Designing Microsoft ASP.NET Applications and owner of Access Microsystems. Doug can be reached at doug@accessmicrosystems.com....
4
6791
by: Andrew | last post by:
Hey all, I would like to preface my question by stating I am still learning ASP.net and while I am confident in the basics and foundation, the more advanced stuff is still a challenge. Ok. :)
0
1507
by: Albertas | last post by:
What I'm doing wrong that I can't make my authentication to work. Here is the situation: I'm hosting a Web Service from a Windows forms application, using .NET Framework 3.0 WCF. And I want to implement user authentication. Here is my Web Service class called "methods": public class Authentication : SoapHeader { public String user;...
18
3385
by: troywalker | last post by:
I am new to LDAP and Directory Services, and I have a project that requires me to authenticate users against a Sun Java System Directory Server in order to access the application. I have found dozens of examples of how to authenticate users against Active Directory, but AD seems to be a different animal than Sun Java System Directory Server....
2
7500
by: Frank Swarbrick | last post by:
I am trying to understand "client authentication" works. My environment is DB2/UDB LUW 8.2 on zSeries SLES9 as the database server and DB2 for VSE 7.4 as the client. We currently have DB2/LUW set up as follows: Client Userid-Password Plugin (CLNT_PW_PLUGIN) = Client Kerberos Plugin (CLNT_KRB_PLUGIN) = Group Plugin ...
5
3531
by: Rory Becker | last post by:
Having now created a Custom MembershipProvider that seems to work correctly with my Logon and ChangePassword controls, I am, as they say, a happy bunny. The next stange is to move on to the creation of content which adjusts based on the user. I have several pages which require a user to be logged on and several which do not. Prior to this...
0
7270
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, 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...
0
7178
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...
0
7563
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7125
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...
0
7543
tracyyun
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...
0
5703
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
4757
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3239
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1612
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 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.