Click here to Skip to main content
15,912,493 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Suppose a user visit an “Online Book Store” and he adds some books in the shopping cart and suddenly his connection is disconnected. When user is again connected and go to the same online book store, he assumed that his shopping cart information that he was previously added is saved/ maintained, so that he can further continues the process of online buying. In this situation

how web application maintained the state of the user and which session tracking technique is more effective and why....
Posted
Comments
Pandu Rang 24-Feb-15 1:15am    
Disconnects means his/her internet connection disconnected, then in that case browser stores the cookie information in the browser. Again when internet connection is up , and user logs in the same site(url). based on cookie information, server validates is the session valid, if yes it shows the session data or the user as logged in (without asking the credential again).

Now comes to your question, the best way to track the session is through using session object.

Regards,
Panduranga.

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