473,804 Members | 2,931 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

is the HTTPCONTEXT.cur rent.user content encrypted with session state??

hi all
I use a custom windows principal to the httpcontext.cur rent.user in a
windows authenitcation asp.net app. There are other objects added to the
principal. during the
WindowsAuthenti cation_OnAuthen ticate() call, the principal will be load
rights for the current user alone with the roles. now I wonder if the USER
object be encrypted and send to the client?

what I my concern is when the roles and rights become large, it will effect
the performance.


Nov 19 '05 #1
5 2583
Session state is not sent to the client - only a cookie is sent to the client
with a session identifier. The server can examine the ID in the cookie and
look up the session state when a request arrives.

--
Scott
http://www.OdeToCode.com/blogs/scott/
hi all

I use a custom windows principal to the httpcontext.cur rent.user in a
windows authenitcation asp.net app. There are other objects added to
the
principal. during the
WindowsAuthenti cation_OnAuthen ticate() call, the principal will be
load
rights for the current user alone with the roles. now I wonder if the
USER
object be encrypted and send to the client?
what I my concern is when the roles and rights become large, it will
effect the performance.

Nov 19 '05 #2
HTTPCONTEXT is not part of the session state. I mean the _viewstate that is
hidden in the html to the client.
"Scott Allen" <sc***@nospam.O deToCode.com> wrote in message
news:53******** *************@m snews.microsoft .com...
Session state is not sent to the client - only a cookie is sent to the
client with a session identifier. The server can examine the ID in the
cookie and look up the session state when a request arrives.
--
Scott
http://www.OdeToCode.com/blogs/scott/
hi all

I use a custom windows principal to the httpcontext.cur rent.user in a
windows authenitcation asp.net app. There are other objects added to
the
principal. during the
WindowsAuthenti cation_OnAuthen ticate() call, the principal will be
load
rights for the current user alone with the roles. now I wonder if the
USER
object be encrypted and send to the client?
what I my concern is when the roles and rights become large, it will
effect the performance.


Nov 19 '05 #3
When you use Windows Authentication, there is no user information persisted
within the viewstate.
"Kevin Yu" <ky*@nrcan.gc.c a> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
HTTPCONTEXT is not part of the session state. I mean the _viewstate that is hidden in the html to the client.
"Scott Allen" <sc***@nospam.O deToCode.com> wrote in message
news:53******** *************@m snews.microsoft .com...
Session state is not sent to the client - only a cookie is sent to the
client with a session identifier. The server can examine the ID in the
cookie and look up the session state when a request arrives.
--
Scott
http://www.OdeToCode.com/blogs/scott/
hi all

I use a custom windows principal to the httpcontext.cur rent.user in a
windows authenitcation asp.net app. There are other objects added to
the
principal. during the
WindowsAuthenti cation_OnAuthen ticate() call, the principal will be
load
rights for the current user alone with the roles. now I wonder if the
USER
object be encrypted and send to the client?
what I my concern is when the roles and rights become large, it will
effect the performance.



Nov 19 '05 #4
I apologize - I don't know why I thought you were talking about session state,
but as David points out - there is no user information in viewstate with
windows auth. Google for "viewstate decoder" and you can find a little utility
to poke through the contents of the viewstate.

--
Scott
http://www.OdeToCode.com/blogs/scott/
HTTPCONTEXT is not part of the session state. I mean the _viewstate
that is hidden in the html to the client.

"Scott Allen" <sc***@nospam.O deToCode.com> wrote in message
news:53******** *************@m snews.microsoft .com...
Session state is not sent to the client - only a cookie is sent to
the
client with a session identifier. The server can examine the ID in
the
cookie and look up the session state when a request arrives.
--
Scott
http://www.OdeToCode.com/blogs/scott/
hi all

I use a custom windows principal to the httpcontext.cur rent.user in
a
windows authenitcation asp.net app. There are other objects added to
the
principal. during the
WindowsAuthenti cation_OnAuthen ticate() call, the principal will be
load
rights for the current user alone with the roles. now I wonder if
the
USER
object be encrypted and send to the client?
what I my concern is when the roles and rights become large, it will
effect the performance.

Nov 19 '05 #5
sorry, I mean the viewstate, of course the session state will not be
transfered to the client.
but is httpcontext.cur rent.user content in the _VIEWSTATE string in the
html??

"Scott Allen" <sc***@nospam.O deToCode.com> wrote in message
news:53******** *************@m snews.microsoft .com...
Session state is not sent to the client - only a cookie is sent to the
client with a session identifier. The server can examine the ID in the
cookie and look up the session state when a request arrives.
--
Scott
http://www.OdeToCode.com/blogs/scott/
hi all

I use a custom windows principal to the httpcontext.cur rent.user in a
windows authenitcation asp.net app. There are other objects added to
the
principal. during the
WindowsAuthenti cation_OnAuthen ticate() call, the principal will be
load
rights for the current user alone with the roles. now I wonder if the
USER
object be encrypted and send to the client?
what I my concern is when the roles and rights become large, it will
effect the performance.


Nov 19 '05 #6

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

Similar topics

2
3347
by: moondaddy | last post by:
I need to set a variable to a session variable (if that's what you call it) like this: dim ds as dataset = HttpContext.Current.Session("CustDataSet") But I get an exception if this variable in the current session hasn't been set yet so I need to test it. I tried: If HttpContext.Current.Session("CustDataSet") = nothing then HttpContext.Current.Session("CustDataSet") = GetCustDataSet()
4
7945
by: Makarand Keer | last post by:
Hi All I have problem in using Threading. I have ASP.NET application in which I am using multithreading to start a process. Now the object instances which are used in this thread access HttpContext.Current to get Session Variable value. Here my code fails. Thread on which the process is running does not have HTTPContext.Current object. How can I pass-on HTTPContext.Current info to thread. I used WindowsImpersonationContext for...
15
2536
by: Jason | last post by:
Currently, I am storing information about the currently logged on user in Session variables that are stored in SQL. However, I am using role-based security, so I am storing custom roles in a GenericPrincipal object that I attached to Context.User. My question is this: Can I create a new class, ExtendedPrincipal for instance, and simply inherit System.Security.Principal and store all of the information currently stored in Session...
7
2749
by: Keith Patrick | last post by:
After completely giving up on finding some way in my ASP.Net app to take a query string URL and redirect to it as a POST instead, I went with a system like so: Upon "redirection," all the QueryString pairs are placed in HttpContext.Current.Items and retrieved with a wrapper for Request.Params that includes checks there. This works in general instances, but one problem has come up that has me stuck: since the stuff is in the context and...
3
2509
by: ad | last post by:
I find a line in a Web application like: myString=(string)HttpContext.Current.Items; I used to use myString=(string)Application; or myString=(string)ViewState; I know about the difference about Application state and ViewState. But what is the HttpContext statae?
3
2798
by: John Dalberg | last post by:
I am setting the HttpContext.Current.User in the Application_AuthenticateRequest event in global.asax.cs. When I use the IsInRole function in a web page, it works fine. So far so good. (Note that Integrated security is used and anonymous is turned off.) This app will actually work as a child app for an Intranet app so when I remove the application designation in IIS for the child app folder, IsInRole is always null, which is not good. I...
9
6056
by: Victor | last post by:
Hi all Does anyone has any reference or examples about how to customize the httpcontext.current.user object to my own user object? Cheers Victor
8
996
by: eric | last post by:
I have a 2.0 asp.net project. In a class contained within a seperate project, I am trying to reference HttpContext.Current.Session but Session is always null. I've tried implementing IRequiresSessionState but it does not seem to matter. For a test I created a small solution consisting of a web project and a seperate project to hold a test class. In the test class I reference HttpContext.Current.Session and it works fine with or without...
14
29484
by: R.A.M. | last post by:
Hello, I have created ASP.NET project in which I have a file Admin.cs. It contains static class Admin with some methods and properties. The problem is that in property get a reference HttpContext.Current.Session is null, although for instance HttpContext.Current.Application or HttpContext.Current.Request is not null: public static class Admin {
0
9706
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9577
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10325
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10315
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
10075
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9140
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6847
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4295
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
3
2990
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.