02-22-05 10:50 PM
Hello All,
A couple of days ago, I posted about having some issues with
CommerceContext.Current.AuthenticationInfo.SupportsSessionCookies
property always returning false.
I found a workaround for the time being, but I've tracked the problem
down to the URLBuilder (...) call in the
UrlBuilder.Current.Redirect(...) call in the EnsureAccess(..) function
in the SiteUtlity.CS file that comes with the FP1 Solution Sites.
Here's what's happening:
I've unpacked the site to per instructions to
<WWWROOT>\MyProject\
When I start at any page in the project, Commerce is setting the
TestPersistentCookie in a file named:
user@localhost.txt.
This happens whether I enter a URL of
http://localhost/MyProject/default.aspx or
http://servername/MyProject/dfault.aspx .
Then when ensureAccess is called URLBuilder returns a URL in the form
of
http://servername/MyProject/default.aspx. But then Commerce is
checking for a cookie in user@MyProject.txt and does not find it,
because the TestPersistentCookie was places in user@localhost.txt .
This leads to SupportsSessionCookies always returning false.
So...Some questions:
1. How do I get Commerce to set the persistent cookie in
user@MyProject.txt or how do I get commerce to check for the cookie in
user@localhost.txt .
2. Why does UrlBuilder always change my urls from
http://localhost/MyProject/... to http://servername/MyProject/...
3. Is it critical tha I use URL Builder for the redirects? (I'm
currently using some of my own code int he EnsureAccess function).
Any insights are welcome.
-tomas
[ Post a follow-up to this message ]
|