Is Session ID Unique?
-
I want to know whether the session id is unique when a group of people browsing through the same site, same page at the same time. Can anybody help? Please send me the code which will generate the session id.
Prakash Mishra(Banglore,India)
-
I want to know whether the session id is unique when a group of people browsing through the same site, same page at the same time. Can anybody help? Please send me the code which will generate the session id.
Prakash Mishra(Banglore,India)
SessionID is generated in RAM on the Webserver and It is not a persistent property. It is unique at the time is it created.but not guaranteed to be unique. :cool: Same SessionID might be used again after your Web server has been restarted. This means that you shouldn't attempt to track the same user over time by using her SessionID. :cool:
Best Regards ----------------- Abhijit Jana View My CodeProject Articles "Success is Journey it's not a destination"
-
I want to know whether the session id is unique when a group of people browsing through the same site, same page at the same time. Can anybody help? Please send me the code which will generate the session id.
Prakash Mishra(Banglore,India)
This should really be asked on the ASP.NET forum.
Deja View - the feeling that you've seen this post before.
-
SessionID is generated in RAM on the Webserver and It is not a persistent property. It is unique at the time is it created.but not guaranteed to be unique. :cool: Same SessionID might be used again after your Web server has been restarted. This means that you shouldn't attempt to track the same user over time by using her SessionID. :cool:
Best Regards ----------------- Abhijit Jana View My CodeProject Articles "Success is Journey it's not a destination"
Abhijit Jana wrote:
SessionID is generated in RAM
I don't think so. I think it's stored as a cookie in client machine.
-
Abhijit Jana wrote:
SessionID is generated in RAM
I don't think so. I think it's stored as a cookie in client machine.
But that is generated by the server !!!
Best Regards ----------------- Abhijit Jana View My CodeProject Articles "Success is Journey it's not a destination"
-
Abhijit Jana wrote:
SessionID is generated in RAM
I don't think so. I think it's stored as a cookie in client machine.
N a v a n e e t h wrote:
I don't think so. I think it's stored as a cookie in client machine.
It's created on the server, and also stored as a cookie on the client. The server has to keep track of the session id:s that it has created, so that it can verify that the id exists when the client sends another reuqest. In earlier versions of IIS, the Session object was used to keep track of session. In more recent versions, the Session object is only retained if any data has been stored in it, otherwise only the session id is retained, and a new Session object is created for every request.
--- "Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things." -- Douglas Adams
-
N a v a n e e t h wrote:
I don't think so. I think it's stored as a cookie in client machine.
It's created on the server, and also stored as a cookie on the client. The server has to keep track of the session id:s that it has created, so that it can verify that the id exists when the client sends another reuqest. In earlier versions of IIS, the Session object was used to keep track of session. In more recent versions, the Session object is only retained if any data has been stored in it, otherwise only the session id is retained, and a new Session object is created for every request.
--- "Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things." -- Douglas Adams
Guffa wrote:
It's created on the server, and also stored as a cookie on the client.
This is what I meant. Is it possible to access the session value from the id specified ? I mean if I pass the session id through querystring, is it possible to access the value ?
-
Guffa wrote:
It's created on the server, and also stored as a cookie on the client.
This is what I meant. Is it possible to access the session value from the id specified ? I mean if I pass the session id through querystring, is it possible to access the value ?
N a v a n e e t h wrote:
This is what I meant.
But it was not clear from what you said. :)
N a v a n e e t h wrote:
Is it possible to access the session value from the id specified ? I mean if I pass the session id through querystring, is it possible to access the value ?
No. A Session object can only be accessed by a request that is associated with the sesson, i.e. sends the session id in the correct cookie.
--- "Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things." -- Douglas Adams
-
N a v a n e e t h wrote:
This is what I meant.
But it was not clear from what you said. :)
N a v a n e e t h wrote:
Is it possible to access the session value from the id specified ? I mean if I pass the session id through querystring, is it possible to access the value ?
No. A Session object can only be accessed by a request that is associated with the sesson, i.e. sends the session id in the correct cookie.
--- "Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things." -- Douglas Adams
Guffa wrote:
But it was not clear from what you said.
:doh: it's my language problem.
Guffa wrote:
No. A Session object can only be accessed by a request that is associated with the sesson, i.e. sends the session id in the correct cookie.
Thanks.