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

Request.IsAuthenticated vs. Identity.IsAuthenticated

Bob
Seems either of these can be used to check whether a request is
authenticated or not:

Request.IsAuthenticated
HttpContext.Current.User.Identity.IsAuthenticated

Are these always in sync? in other words, the values returned from these
two properties are always the same in any scenarios?

Thanks
Bob
Nov 18 '05 #1
1 8725

Check out this:

http://www.dotnet247.com/247referenc...22/114539.aspx

--
Joe Fallon

" Bob" <bo*******@yahoo.com> wrote in message
news:eC*************@TK2MSFTNGP11.phx.gbl...
Seems either of these can be used to check whether a request is
authenticated or not:

Request.IsAuthenticated
HttpContext.Current.User.Identity.IsAuthenticated

Are these always in sync? in other words, the values returned from these
two properties are always the same in any scenarios?

Thanks
Bob

Nov 18 '05 #2

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

Similar topics

0
by: Nick | last post by:
I have two seperated asp.net projects - project1 (\inetpub\wwwroot\project1) and subproject (\inetpub\wwwroot\project1\subproject). They share authenticating code in...
0
by: Nick | last post by:
How to make two asp.net projects share request.isAuthenticated? Thanks
3
by: hn | last post by:
I would like to get the visitor's ip address. Which one is the appropriate one to use: Request.ServerVariables("REMOTE_ADDR") or Request.UserHostAddress? Thanks in advance.
1
by: Rulin Hong | last post by:
In other words, can I use Request.IsAuthenticated in callback function to check if user is authenticated or not? Thanks in advance.
2
by: paul | last post by:
Hi, Quick question - does HttpContext.Current.User.Identity.IsAuthenticated perform a hit on the database if using forms authentication? Just wondering if I should perform this once when a...
0
by: dotnettester | last post by:
Hi, I am working on an application and want to set a cookie so that on a page when I check 'Request.IsAuthenticated', it would give me the correct value. How can I set the Authentication...
2
by: Zulander | last post by:
Hi, For some reason my session are expireing when the web browser closes and User.Identity.IsAuthenticated is truning true, I have a webcrontrol from login: Protected Sub Login1_LoggedIn(ByVal...
5
by: .Net Sports | last post by:
I'm trying to insert records into an sql database coming from a page using the request ..form method. The table "general" has a primary key 'geid .' I get the following error: Cannot insert the...
3
by: dihola | last post by:
Hi, I have a website running in IIS7 and it seems to be creating a new session for every request I make. The values I store in Session are lost with every request. This is the forms bit in my...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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?
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
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...
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,...

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.