c# - Javascript same domain information sharing -


i have website holds 1 setting - number user clicked.

i want user see number , able change @ time. until using cookies achieve this. stumbled across error : when user opens address website :

http://servername/pick 

he sees number. when opens address :

http://servername.serverdomain/pick 

he sees diffirent number. , in browser settings see 2 cookies : 1 domain "servername" , 1 domain "servername.serverdomain".

is there way share same cookie without relaying on wether user specified domain name? if not, there way without cookies?

note : have full control on client , server side (asp.net mvc)

you can't share cookies different domains, can use 1 domain primary domain issue cookie , read cookie other domains should redirect domain, read cookie , redirect value in query string. similar, google redirects sign-in requests google.com, google+, docs etc account.gooogle.com or microsoft msn, hotmail, etc login.live.com , back.


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -