473,396 Members | 2,139 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,396 software developers and data experts.

Regarding sessions in asp.net

83
Hii all.,

I've some doubts on sessions in asp.net .

If the client send a first request to a website then in response the site sends a sessionId which will be stored in browser as a sessioncookie upto this point its clear for me.

If the same client sends the second request the session ID should send to the server to idetify the user.my question is How this will be send to the server??

second question:

why not the session_End event won't get fired if the session mode is OUTProc??if i want to execute some code when session ends where can i put that code??

Thanks in advance for your help.

Goodday.

Rgds,
Tirumala Reddy.B
Oct 4 '10 #1
6 1397
btreddy
83
Somebody can help me in this regards.

Thanks

Tiru.
Oct 4 '10 #2
Frinavale
9,735 Expert Mod 8TB
The Session ID is stored in a Session Identifier Cookie (as a value). Session looks for the cookie and retrieves the Session ID from it.

Session_End is not fired if Session is configured to use something that is not InProc.

I think to answer why you will have to first understand that the Session_End is actually fired when the Session ID is recycled.

I'm going to assume that the only way that ASP.NET can tell if the Session ID has been recycled is if Session is configured to use InProc. I could be wrong, but this makes sense to me.

-Frinny
Oct 4 '10 #3
btreddy
83
Thanks for the reply.

im not still clear about how the sessionid will send to webserver.

-Tiru.
Oct 5 '10 #4
mzmishra
390 Expert 256MB
The session ID is normally generated on the server. It's then sent to the client, either as a cookie in the HTTP headers, or by including it in the HTML, i.e. the links become href=a.html?sessionid=12


If the server is running in cookie-less mode, then the session key becomes part of the URL

the client's next request will then contain the session Id, either in the cookie or the GET part of the request and the server parses it from there.

If the server is expecting to use a session cookie but the client has cookies disabled, then from the perspective of the server, all requests are new sessions as it cannot tell that this is the same user.
Oct 5 '10 #5
btreddy
83
Thanks mishra ji for your reply.

So the sessionid will be added to the GET part if its a cookie session or to URl if its a cookieless session.am i correct?

can we see that GET part ?


Thanks & Regards,
Tirumala Reddy B
Oct 5 '10 #6
Frinavale
9,735 Expert Mod 8TB
Were you asking about cookieless session??


-Frinny
Oct 6 '10 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Chewy509 | last post by:
Hi Everyone, I'll just start, and say I am not a PHP developer (I'm a sysadmin, who has gotten lumped with a non-working website). But since I like to do this type of stuff, I though I might...
0
by: Gary Petersen | last post by:
I've seen a couple of questions regarding the expiring of sessions in PHP. The way to control how sessions expire is to set some options in php.ini. These options are of particular use:...
0
by: Nonoy of Philippines | last post by:
Hello, guys... I'm just starting to develop web applications and I have this problem regarding Session objects At some parts of my application, I open modal dialog window which also opens...
8
by: Ron Vecchi | last post by:
I know this has been asked before but I out of all the posts I've read regarding using Directory.Move and then the application restarting itself I have found no answer except that Sessions are...
2
by: Paul Oak | last post by:
hi all, i have a question regarding the sessions or so called memory cookies in ASP.NET. Is there a way all the current sessions to be viewed and edited somehow? For example: I have opened 5...
6
by: Daniel Walzenbach | last post by:
Hi, I have a web application which sometimes throws an “out of memory” exception. To get an idea what happens I traced some values using performance monitor and got the following values (for...
2
by: Dean R. Henderson | last post by:
For an ASP.NET web application, is there a way for one session (with appropriate security authorization) to set a HttpSessionState variable to point to another session and execute the Abandon...
0
by: Pavils Jurjans | last post by:
Hello, I have two questions regarding the Session state. 1) Is there some way on the server to programmatically access the other active sessions? Well, perhaps the question should be...
0
by: TigrouMeow | last post by:
Hello, I'm trying to make a "clean" webservice, using Nhibernate. I'm facing some issues, but i'm quite the beginner with that kind of system. When there are more than 2 clients connected on my...
2
by: shivapadma | last post by:
The following is the front end code for searching , it takes data and searches from the database by the second code. FRONT END CODE: <html> <head> <meta http-equiv="Content-Language"...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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:
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
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...
0
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 projectplanning, coding, testing,...

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.