Sharing cookie data between virtual directories
I have an obscure problem: I am trying to combine a third-party discussion board with a custom blog interface I have written myself (I have reasons for making such an insane decision). I have largely been successful, with the exception of one thing: I can't get MY blog pages to recognize the presence of the discussion board's cookie (which contains the user login data). My blog page has identical code for detecting and creating or updating the cookies.
After doing some poking around, I noticed that the server is creating two cookies. I realized that this is because my blog pages are in the main directory of the site (i.e. ...site.com/blogpage.asp ), and my discussion board is in a different folder on the server accessed via virtual directory (i.e. ...site.com/BOARD/discussionpage.asp ). In other words, one cookie is being created for pages residing at the root level, and another cookie is being created for pages residing in the "BOARD" virtual directory.
I am (obviously) not very experienced with cookies. Is there any way to explicitly tell the root level pages to look for the "BOARD" level cookie?
Thanks!
|