Click here to Skip to main content
15,895,777 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hello Developers,

In so many sites, the user's reference number is maintained.
No matter from wherever user enters in the site, its reference is
maintained. Then whatever page accessed or whatever operation
made is referenced with that reference number. I want to do the
same in my site. I am using MVC 5/ WCF service in my website.
Please suggest me how to implement this.
Posted
Comments
CHill60 9-Jun-15 9:07am    
Cookies?
kailash_tandel87 9-Jun-15 9:30am    
If user disable cookies then?
CHill60 9-Jun-15 9:31am    
Their reference number won't be available in the site when they return to it - it's their choice
kailash_tandel87 9-Jun-15 9:41am    
Its not their choice, Its developer's choice, I want to track the user's history, that's why I want to implement this.
CHill60 9-Jun-15 9:43am    
It is the users choice whether or not to have their history tracked, not yours.

1 solution

 
Share this answer
 
Comments
kailash_tandel87 9-Jun-15 10:47am    
Thanks, Its nice but I dont want to use cookies.
F-ES Sitecore 9-Jun-15 10:54am    
Then you can't do it. The web is stateless and the only way to maintain state between calls is cookies. Your alternative is to append the id to every url but that has so many downsides it's not worth considering. If the user wants to disable cookies then that's their choice, the internet as a whole won't be a very nice experience for them.
kailash_tandel87 10-Jun-15 2:24am    
thank you for your valuable sollution.

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