| Creating cross subdomain cookies in VB.NET |
| Saturday, 15 November 2008 | |
| In order to create a cross domain cookie within VB.NET you need to set the .domain element of the cookie for example Response.Cookies("domain").Value = DateTime.Now.ToString() Response.Cookies("domain").Expires = DateTime.Now.AddDays(1) Response.Cookies("domain").Domain = "programmingtips.co.uk" Would allow the cookies to be read from both www.programmingtips.co.uk and forum.programmingtips.co.uk - however not from www.grahamrobinsonsoftware.co.uk There is a good article on creating VB.NET cookies at http://www.go4expert.com/forums/showthread.php?t=14605 | |
| Last Updated ( Wednesday, 31 December 2008 ) |