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

OT - How Web Apps Do/Should Detect Authentication

Hello:

Can someone tell me how a web application knows whether a user is
logged in?

Somehow, web applications can detect whether someone has already
logged in.

I know all about ASP Membership; that's not what I'm asking.

I want to know what gets sent to the web server so it can verify the
user. Is it some kind of cookie? a HTTP header? taco meat?

Any links or books where I can read all about it would be muchly
appreciated.

Thanks for any insight!

~Travis
Nov 15 '08 #1
5 1496
je**********@gmail.com wrote:
Can someone tell me how a web application knows whether a user is
logged in?

Somehow, web applications can detect whether someone has already
logged in.

I know all about ASP Membership; that's not what I'm asking.

I want to know what gets sent to the web server so it can verify the
user. Is it some kind of cookie? a HTTP header? taco meat?

Any links or books where I can read all about it would be muchly
appreciated.
Traditionally there are two ways:
* a cookie with session id
* URL rewriting that put the session id in the URL

Cookie is the standard.

Arne
Nov 15 '08 #2
On Nov 14, 6:48*pm, Arne Vajhøj <a...@vajhoej.dkwrote:
jehugalea...@gmail.com wrote:
Can someone tell me how a web application knows whether a user is
logged in?
Somehow, web applications can detect whether someone has already
logged in.
I know all about ASP Membership; that's not what I'm asking.
I want to know what gets sent to the web server so it can verify the
user. Is it some kind of cookie? a HTTP header? taco meat?
Any links or books where I can read all about it would be muchly
appreciated.

Traditionally there are two ways:
* a cookie with session id
* URL rewriting that put the session id in the URL

Cookie is the standard.

Arne
Thanks.

Can I ask another question then?

We purchased an off-the-shelf product. The company who made it claims
that we can send an HTTP header to their product and it would
automatically let us access their web site. They call this their 3rd
party authentication method. My question is, how can this be secure if
all someone has to do is generate the right header? Couldn't anyone
generate the header?

I think the company's representative has lost her mind. Even if she
knows what she is talking about, I can't see how her suggestion could
be secure... does this mean anything to anyone?
Nov 15 '08 #3
je**********@gmail.com wrote:
On Nov 14, 6:48 pm, Arne Vajhøj <a...@vajhoej.dkwrote:
>jehugalea...@gmail.com wrote:
>>Can someone tell me how a web application knows whether a user is
logged in?
Somehow, web applications can detect whether someone has already
logged in.
I know all about ASP Membership; that's not what I'm asking.
I want to know what gets sent to the web server so it can verify the
user. Is it some kind of cookie? a HTTP header? taco meat?
Any links or books where I can read all about it would be muchly
appreciated.
Traditionally there are two ways:
* a cookie with session id
* URL rewriting that put the session id in the URL

Cookie is the standard.
Can I ask another question then?

We purchased an off-the-shelf product. The company who made it claims
that we can send an HTTP header to their product and it would
automatically let us access their web site. They call this their 3rd
party authentication method. My question is, how can this be secure if
all someone has to do is generate the right header? Couldn't anyone
generate the header?
The cookie and URL sessions id's are usually a 128 or 160 bit
number in hex form.

The chance of guessing one of the maybe 100 valid session id's from
the 2^128 or 2^160 possible is very small.

If the HTTP header contains something similar hard to guess, then
it may be secure.

Arne
Nov 15 '08 #4
On Nov 14, 7:11*pm, Arne Vajhøj <a...@vajhoej.dkwrote:
jehugalea...@gmail.com wrote:
On Nov 14, 6:48 pm, Arne Vajhøj <a...@vajhoej.dkwrote:
jehugalea...@gmail.com wrote:
Can someone tell me how a web application knows whether a user is
logged in?
Somehow, web applications can detect whether someone has already
logged in.
I know all about ASP Membership; that's not what I'm asking.
I want to know what gets sent to the web server so it can verify the
user. Is it some kind of cookie? a HTTP header? taco meat?
Any links or books where I can read all about it would be muchly
appreciated.
Traditionally there are two ways:
* a cookie with session id
* URL rewriting that put the session id in the URL
Cookie is the standard.
Can I ask another question then?
We purchased an off-the-shelf product. The company who made it claims
that we can send an HTTP header to their product and it would
automatically let us access their web site. They call this their 3rd
party authentication method. My question is, how can this be secure if
all someone has to do is generate the right header? Couldn't anyone
generate the header?

The cookie and URL sessions id's are usually a 128 or 160 bit
number in hex form.

The chance of guessing one of the maybe 100 valid session id's from
the 2^128 or 2^160 possible is very small.

If the HTTP header contains something similar hard to guess, then
it may be secure.

Arne- Hide quoted text -

- Show quoted text -
I see your point. This is all good information. I will pass that
along. Thanks for your answers.
Nov 15 '08 #5
je**********@gmail.com wrote:
On Nov 14, 7:11 pm, Arne Vajhøj <a...@vajhoej.dkwrote:
>jehugalea...@gmail.com wrote:
>>On Nov 14, 6:48 pm, Arne Vajhøj <a...@vajhoej.dkwrote:
jehugalea...@gmail.com wrote:
Can someone tell me how a web application knows whether a user is
logged in?
Somehow, web applications can detect whether someone has already
logged in.
I know all about ASP Membership; that's not what I'm asking.
I want to know what gets sent to the web server so it can verify the
user. Is it some kind of cookie? a HTTP header? taco meat?
Any links or books where I can read all about it would be muchly
appreciated.
Traditionally there are two ways:
* a cookie with session id
* URL rewriting that put the session id in the URL
Cookie is the standard.
Can I ask another question then?
We purchased an off-the-shelf product. The company who made it claims
that we can send an HTTP header to their product and it would
automatically let us access their web site. They call this their 3rd
party authentication method. My question is, how can this be secure if
all someone has to do is generate the right header? Couldn't anyone
generate the header?
The cookie and URL sessions id's are usually a 128 or 160 bit
number in hex form.

The chance of guessing one of the maybe 100 valid session id's from
the 2^128 or 2^160 possible is very small.

If the HTTP header contains something similar hard to guess, then
it may be secure.

I see your point. This is all good information. I will pass that
along. Thanks for your answers.
Note that traditionally it is the server that assigns a random
session id to you.

If your OTS product is the same, then it is all fine. But if
it is a hardcoded value for your company, then there are additional
security issues, because that key can leak.

Arne
Nov 15 '08 #6

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

Similar topics

1
by: John Rauhe | last post by:
Hello, Does anybody know how to detect if an mass-storage device has been added to the system ? I am making a program that will (should) detect when a CompactFlash memory card has been inserted...
4
by: Andrew Banks | last post by:
Can anyone help me out with why the following code in web.config <authentication mode="Forms" /> <forms loginUrl = "Secure/Login.aspx" /> </authentication> gives me the following error ...
1
by: David Krussow | last post by:
I have implemented ASP.NET Forms authentication in a test app. The app has a number of forms - only one of which requires authentication in order to be viewed (the "secured form"). Everything works...
4
by: Kristof Despiere | last post by:
Suppose you have one domain, filled with a couple of users. What needs to be done now is I need to start a windows application from a webform by pressing a button on the webform (for example). ...
0
by: Brian | last post by:
Thanks for your time. When a hashed password is stored in a db - how should it appear in the table? In the MySQL table I'm using to store username and passwords, it appears as system.byte. ...
5
by: djhexx | last post by:
Hi. We have an asp.net intranet application written in VB that uses forms authentication for all it's pages. I have a C# asp.net application that I just wrote. The company would like the C#...
1
by: Jessica | last post by:
Hi, I'm sorry if this has been asked before. I'm a designer and occasional javascript hacker, not a javascript writer. I cannot believe I have spent over 4 hours searching for this on Google and...
1
by: mjobbe | last post by:
Hi, I'm creating an MSI for a client app using a Visual Studio Setup Project. I'm trying to detect if Internet Explorer is running on the target computer before I start the installation. How do I...
1
by: =?Utf-8?B?Tkg=?= | last post by:
Hi, I have to swtich my asp.net 2.0 apps from forms authentication to windows authentication. All the users in the database obviously have a userid and this userid was stored into the...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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: 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...

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.