Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
I was asked in an interview:
If I open a site,will there be any session created for me,even if I have not logged in using credentials?
What if I opened the same site from
i.same system,same browser[using tab],will there be any more session created?
ii.same system,diff browser?
where will this session be stored?
Posted

1 solution

avishekrc wrote:
If I open a site,will there be any session created for me,even if I have not logged in using credentials?


Yes the session gets created as soon as you open the site.


avishekrc wrote:
.same system,same browser[using tab],will there be any more session created?

All the browsers share the same session whether you are opening it in tab or even different instance of the same browser.
avishekrc wrote:
ii.same system,diff browser?

If you are using the different browser, then a new session would be created.
avishekrc wrote:
where will this session be stored?


The session values are stored at webserver the only thing sessionid that is stored on cookies on client system.

Is this clarify your question.
 
Share this answer
 
Comments
avishekrc 12-May-10 0:29am    
Thanks dude!it was really helpful!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900