|
Home > Archive > Commerce Server General > January 2006 > Authentication
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Sameer Deshpande 2006-01-24, 6:06 pm |
| We have a commerce server site, which hosts both ASP and ASP.Net pages.
The user logs in through the asp page using AuthManager object.
After I log in and when I try to access .Net pages I check to see if the
user is logged in or not. I check this using
currentContext.AuthenticationInfo.IsAuthenticated() method.
This method returns me false.
How can I find whether the user is logged in through ASP.Net pages? It seems
like the auth ticket is lost once I am in .Net pages.
Please let me know,
Thanks,
Sameer
| |
|
| I had a similar problem recently, after logging in I always got "false"
from isAuthenticated():
I solved the problem after a lot of testing, turned out to be the "set
cookie path to application"-checkbox found in the site properties in
Commerce Server Manager. Unchecking this solved the problem.
Kind Regards,
Eric
| |
| Sameer Deshpande 2006-01-29, 9:09 pm |
| I tried your suggestion but it did not work.
In the meantime what I tried to do is to login through the .Net page. I can
login and I checked with the asp pages, it seems to send out correct result.
The only problem now is with the objects created in global.asa file. I am
trying to create them in Global.asax file.
For ex: In Global.asa "Commerce.ProfileService" object is created and
initialized and added to the Application variable. How do you get the same
thing to do in Global.asax file. I am having hard time trying to figure this
out?
Please let me know,
Thanks,
Sameer
"Eric" wrote:
> I had a similar problem recently, after logging in I always got "false"
> from isAuthenticated():
>
> I solved the problem after a lot of testing, turned out to be the "set
> cookie path to application"-checkbox found in the site properties in
> Commerce Server Manager. Unchecking this solved the problem.
>
> Kind Regards,
> Eric
>
>
| |
| Ravi Shankar 2006-01-29, 9:09 pm |
| Hi Sameer,
In the Commerce Server 2002 Scenario basic sevices are available as Commerce
Modules which are configured in the web.config file and accessible as
CommerceContext object. Further information about Commerce Modules and
web.config is available at
http://msdn.microsoft.com/library/?....asp?frame=true
and the following code sample for a login page at
http://msdn.microsoft.com/library/?....asp?frame=true
will take you through how to access Profile Service and others...
--
Ravi Shankar
"Sameer Deshpande" wrote:
[vbcol=seagreen]
> I tried your suggestion but it did not work.
>
> In the meantime what I tried to do is to login through the .Net page. I can
> login and I checked with the asp pages, it seems to send out correct result.
>
> The only problem now is with the objects created in global.asa file. I am
> trying to create them in Global.asax file.
>
> For ex: In Global.asa "Commerce.ProfileService" object is created and
> initialized and added to the Application variable. How do you get the same
> thing to do in Global.asax file. I am having hard time trying to figure this
> out?
>
> Please let me know,
>
> Thanks,
> Sameer
> "Eric" wrote:
>
|
|
|
|
|