Results 1 to 4 of 4

Thread: How sessions are uniquely identified in ASP.net

  1. #1
    Join Date
    Jan 2011
    Posts
    46

    How sessions are uniquely identified in ASP.net

    I am Xi std. science student. Yesterday I went to my friend’s house. There we decide to go to one entertainment site for downloading new movies and trailers. We both are regular visitors of that site so we both log in to their site from single pc but in different tab window. When I tried to download latest movie from my window it pop ups me a message window. Showing only registered users are allowed to download this movie. So I download it from my friend’s window. He was already registered user of that site. That time one question comes in mind that how server will distinguishes between user to check whether he is registered user or not even when hell amount of peoples accessing same site.

  2. #2
    Join Date
    May 2009
    Posts
    637

    Re: How sessions are uniquely identified in ASP.net

    I appreciate your way of thinking. You are suitable person for science community. Your question is absolutely right. Let me tell you the answer. When particular visitor log-in on site it creates session for user. And along with that session also sends one cookie on client machine. cookie contains all information related to user like its username, login and all that. When visitor try to something on site like you did like downloading movie and all that that time sever lookout for that cookie associated with particular user to distinguish between them.
    For working this method one condition is necessary that on browsers cookie should be enabled.

  3. #3
    Join Date
    May 2009
    Posts
    511

    Re: How sessions are uniquely identified in ASP.net

    Initially sessions use cookies to identify difference between every user. But sometime it may be happen that on visitors site cookies are disabled on browsers settings. Now another question will come in your mind now how they distinguish between hell no. of visitors so let me tell you that if cookies are disabled then site use cookie less sessions. Which creates unique URL for all users?

  4. #4
    Join Date
    May 2009
    Posts
    543

    Re: How sessions are uniquely identified in ASP.net

    When user checked the checkbox Remember me at the time of login that time web site creates one cookie which resides on clients hard disk for that many days which are decide by web site developer normally this duration is kept around two days. In between these two days whenever that visitor open that site take his log name and password from cookie that resides on users hard-disk. These types of cookies are called as persistent cookies.

Similar Threads

  1. Bluetooth device not identified on T61
    By GarySober in forum Portable Devices
    Replies: 6
    Last Post: 01-05-2011, 10:16 AM
  2. USB not identified/formatted with XBox 360
    By ravinderroy in forum Hardware Peripherals
    Replies: 5
    Last Post: 12-11-2010, 09:16 AM
  3. Replies: 4
    Last Post: 21-02-2010, 05:36 AM
  4. Replies: 5
    Last Post: 03-02-2010, 01:59 AM
  5. DVD-Writer identified as CD-Drive
    By Adolph in forum Hardware Peripherals
    Replies: 4
    Last Post: 04-04-2009, 07:19 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,252,395.63721 seconds with 17 queries