473,770 Members | 5,284 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

About Session Object


When is the session object created and by which class,httprunti me or
httpapplication or sessionstateMod ule?

Thanks
Nov 19 '05 #1
2 1258
re:
When is the session object created
The first time a browser requests an aspx page in an Application.

If using cookieless mode, the session state will be managed
by annexing an arbitrary character sequence to the URL.

If using cookies, the session state will be managed with cookies.

re:by which class,httprunti me or httpapplication or sessionstateMod ule?
HTTPSessionStat e

See : http://www.csharphelp.com/archives/archive185.html
and Peter Bromberg's explanations at http://www.eggheadcafe.com/articles/20021016.asp

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"roland" <77***@sina.com > wrote in message news:eZ******** *****@TK2MSFTNG P15.phx.gbl...
When is the session object created and by which class,httprunti me or
httpapplication or sessionstateMod ule?

Thanks

Nov 19 '05 #2
At server side,there is a session object,
such as page.session,ht tpcontext.sessi on, that's all the same thing.

When the request reached the web server, IIS load the Aspnet_ISAPI.Dl l,
then the aspnet_wp.exe is loaded, then appdomain is created, and then
httpcontext is created.
I want to know when the session object is created at server side and which
object create it.

"Juan T. Llibre" <no***********@ nowhere.com> дÈëÓʼþ
news:uQ******** *****@TK2MSFTNG P09.phx.gbl...
re:
When is the session object created
The first time a browser requests an aspx page in an Application.

If using cookieless mode, the session state will be managed
by annexing an arbitrary character sequence to the URL.

If using cookies, the session state will be managed with cookies.

re:
by which class,httprunti me or httpapplication or sessionstateMod ule?


HTTPSessionStat e

See : http://www.csharphelp.com/archives/archive185.html
and Peter Bromberg's explanations at

http://www.eggheadcafe.com/articles/20021016.asp
Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"roland" <77***@sina.com > wrote in message

news:eZ******** *****@TK2MSFTNG P15.phx.gbl...

When is the session object created and by which class,httprunti me or
httpapplication or sessionstateMod ule?

Thanks


Nov 19 '05 #3

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

Similar topics

220
19156
by: Brandon J. Van Every | last post by:
What's better about Ruby than Python? I'm sure there's something. What is it? This is not a troll. I'm language shopping and I want people's answers. I don't know beans about Ruby or have any preconceived ideas about it. I have noticed, however, that every programmer I talk to who's aware of Python is also talking about Ruby. So it seems that Ruby has the potential to compete with and displace Python. I'm curious on what basis it...
11
4971
by: Ohaya | last post by:
Hi, I'm trying to understand a situation where ASP seems to be "blocking" of "queuing" requests. This is on a Win2K Advanced Server, with IIS5. I've seen some posts (e.g., http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=Tidy7IDbDHA.2108%40cpmsftngxa06.phx.gbl) that indicate that ASP will queue up requests when they come in with the same "session".
2
1575
by: June Moore | last post by:
Hi, I've got the following code that sets a session object. set obj = server.createobject("Scripting.Dictionary") set session("testobj") = obj If I want to remove the session object, do each of the following does the same job? Which one is the best? 1 --> set session("testobj") = null 2 --> set session("testobj") = nothing
3
3063
by: Martin | last post by:
Hi all As my posting title suggests I'm having problems using InProc Session state in my ASP .NET app. I wrote a site for a friend which uses ADO .NET to keep track of a simple customer/purchases database. A user creates an account and a database entry is added to a customer table. Once a user successfully logs in with a valid Username/Password I store away the UserID (which is the primary key of the Customers table) in the Session...
10
387
by: Simon Harvey | last post by:
Hi everyone, Can anyone tell me if I declare a global variable in my pages code behind, is it persisted if the page does a post back, or do I need to add the object to the session object in order to persist it. Is the session the best mechnism for persisiting this object Thanks everyone
1
2907
by: Edward Yang | last post by:
When it comes to ViewState in ASP.NET, I have a mixed feeling of both love and hate. For love, it simplifies many aspects of common tasks; for hate, it bloats web pages with large amount of cryptic (though not really :-)) text. I find that LOS formatter is not as effecient as what Microsoft claims. It takes up much of CPU time. For example, it is very obvious in CPU utilization (up to 50% for one page) when serializing/deseriailzing a...
10
3440
by: glenn | last post by:
I am use to programming in php and the way session and post vars are past from fields on one page through to the post page automatically where I can get to their values easily to write to a database or continue to process on to the next page. I am now trying to learn ASP to see if we can replace some of our applications that were written in php with an ASP alternative. However, after doing many searches on google and reading a couple...
2
1352
by: Joergen Bech | last post by:
Trying to write an xml file from within a Session. Works fine if I do it in the Application_Start event of Global.asax, but not in the Page_Load event of an aspx page. If I give "Everyone" write permissions to the folder/file, everything works fine (on my local development machine), but this is not an option on the production server, which is outside of my control. This also means that I cannot add new accounts with the required...
3
1164
by: Bjorn | last post by:
Hi, I read a lot of things about Serialization but i'm not sure i understand what it is really doing. Anyway, i use in my application the 'Profiles' which must contain things like name of customers, address... and a kind of shoppinglist. Therefore i created a class with "<Serializable()" and i created the profiles in web.config and added "serializeAs="Binary", just like i read in some doc. Everything works perfectly.
0
9591
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
10225
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10053
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
10001
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
9867
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
5312
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5449
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3573
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2816
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.