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

How authenticate user manually?

I have a subdir called "customer" that only allows authenticated users
(using web.config.)

In my login.aspx I allow them to pass username/password in query string.
Then I go to a default page.

Am I doing this right? It doesn't seem to authenticate in IE6, only IE7 and
Firefox.

If Membership.ValidateUser(request.querystring("User" ),
request.querystring("Pwd")) Then
FormsAuthentication.SetAuthCookie(request.querystr ing("User"), True)
Response.Redirect("customer/MySecuredPage.aspx")
End If

If I run the same code in IE6, passing it a valid username & password, I get
auto redirected back to the login page, as if it's not authenticated. Any
idea what's wrong????
Jun 30 '08 #1
6 2223
"Cirene" <ci****@nowhere.comwrote in message
news:OA****************@TK2MSFTNGP03.phx.gbl...
In my login.aspx I allow them to pass username/password in query string.
Firstly, please say you don't actually pass the username AND password in a
query string...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jun 30 '08 #2
This is a company "internal" webapplication that is tied into a phone
answering system. The phone answering system auto logs in the operator.
It's NEVER seen to the users. It's necessary for this application.

"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:uI**************@TK2MSFTNGP04.phx.gbl...
"Cirene" <ci****@nowhere.comwrote in message
news:OA****************@TK2MSFTNGP03.phx.gbl...
>In my login.aspx I allow them to pass username/password in query string.

Firstly, please say you don't actually pass the username AND password in a
query string...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jun 30 '08 #3
"Cirene" <ci****@nowhere.comwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
>>In my login.aspx I allow them to pass username/password in query string.

Firstly, please say you don't actually pass the username AND password in
a query string...

This is a company "internal" webapplication that is tied into a phone
answering system. The phone answering system auto logs in the operator.
It's NEVER seen to the users. It's necessary for this application.
Hmm - OK...

Could it be a cookie issue...? Could it be that IE6 has been configured not
to accept cookies, even Session cookies...?
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jun 30 '08 #4
Thanks. I believe this fixed the issue...

I added forms timeout to web.config section...

<authentication mode="Forms">

<forms timeout="180"/>

</authentication>
Does this make sense as to why this would work?

"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
"Cirene" <ci****@nowhere.comwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
>>>In my login.aspx I allow them to pass username/password in query
string.

Firstly, please say you don't actually pass the username AND password in
a query string...

This is a company "internal" webapplication that is tied into a phone
answering system. The phone answering system auto logs in the operator.
It's NEVER seen to the users. It's necessary for this application.

Hmm - OK...

Could it be a cookie issue...? Could it be that IE6 has been configured
not to accept cookies, even Session cookies...?
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jun 30 '08 #5
"Cirene" <ci****@nowhere.comwrote in message
news:uk**************@TK2MSFTNGP05.phx.gbl...
>>>>In my login.aspx I allow them to pass username/password in query
string.

Firstly, please say you don't actually pass the username AND password
in a query string...

This is a company "internal" webapplication that is tied into a phone
answering system. The phone answering system auto logs in the operator.
It's NEVER seen to the users. It's necessary for this application.

Hmm - OK...

Could it be a cookie issue...? Could it be that IE6 has been configured
not to accept cookies, even Session cookies...?

Thanks. I believe this fixed the issue...

I added forms timeout to web.config section...

<authentication mode="Forms">

<forms timeout="180"/>

</authentication>

Does this make sense as to why this would work?
Yes, but not why it wouldn't work with certain browsers - curious...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jun 30 '08 #6
Hmmmm Oh well - thanks for your proactive and informative responses, as
usual!

"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:%2******************@TK2MSFTNGP04.phx.gbl...
"Cirene" <ci****@nowhere.comwrote in message
news:uk**************@TK2MSFTNGP05.phx.gbl...
>>>>>In my login.aspx I allow them to pass username/password in query
>string.
>
Firstly, please say you don't actually pass the username AND password
in a query string...

This is a company "internal" webapplication that is tied into a phone
answering system. The phone answering system auto logs in the
operator. It's NEVER seen to the users. It's necessary for this
application.

Hmm - OK...

Could it be a cookie issue...? Could it be that IE6 has been configured
not to accept cookies, even Session cookies...?

Thanks. I believe this fixed the issue...

I added forms timeout to web.config section...

<authentication mode="Forms">

<forms timeout="180"/>

</authentication>

Does this make sense as to why this would work?

Yes, but not why it wouldn't work with certain browsers - curious...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jun 30 '08 #7

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

Similar topics

4
by: Anton | last post by:
I am running 2000 server, sp4, IIS 5 I need to be able to autoexecute an asp page from a batch file that is placed in the windows scheduler. I can execute the page fine, but I can't get past...
0
by: Renato Neves | last post by:
The following code is working fine, i can create the user in the Active Directory and "enable" it. My problem is that, when i'm trying to authenticate him, i can't get to work!! The user and pass...
3
by: Ram | last post by:
How to Authenticate NDS server using C#
13
by: ALI-R | last post by:
I know how to authenticate to a webservice using either of these ways(Assuming that rService represents the webservice): 1) rService.Credentials = new...
1
by: EricRybarczyk | last post by:
I am starting a rewrite of an existing Classic ASP web site in ASP.NET 2.0. The existing ASP application has several types of users, each with a separate login process (separate login page,...
1
by: kevin.vaughan | last post by:
Hello Everyone, Is it possible to authenticate the windows password through Active Directory? If so, how would this be done. I have a login screen in my application and am trying to set it up...
1
by: fomalhaut | last post by:
Hi All, I'm builing an application that requires domain admin access to run, and I'm trying to allow for the application to be run as a normal user and allow the user to provide it with a...
1
by: Michael Howes | last post by:
I would think this would be very, very easy but in the 50 searches I've done I haven't found anything. If our application requires login and that user/password be a local windows account or more...
4
by: Jon | last post by:
I am modifying an app for a customer in ASP.Net 1.1. The app is running on a server outside their network, yet they want to authenticate users against their internal active directory set up (they...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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...

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.