Authentication
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Commerce Server > Commerce Server General > Authentication




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Authentication  
Sameer Deshpande


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-24-06 11: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





[ Post a follow-up to this message ]



    Re: Authentication  
Eric


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-25-06 01:54 AM

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






[ Post a follow-up to this message ]



    Re: Authentication  
Sameer Deshpande


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-30-06 02:09 AM

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
>
>





[ Post a follow-up to this message ]



    Re: Authentication  
Ravi Shankar


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-30-06 02:09 AM

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 ca
n
> login and I checked with the asp pages, it seems to send out correct resul
t.
>
> 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 th
is
> out?
>
> Please let me know,
>
> Thanks,
> Sameer
> "Eric" wrote:
> 





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:00 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register