Cookie path correction?
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 > Cookie path correction?




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

    Cookie path correction?  
maina


Report This Message To A Moderator Edit/Delete Message


 
08-05-04 01:15 PM

I have two applications, mywebServer/app1 and mywebServer/app2 in one
commerce site.

How can i share profile/auth cookies between them?
What excactly do the two options for Cookie Path Correction mean?
"Type 1 to enable application-based correction, or type 2 to enable
filter-based correction."

I have tried both options, but it always gives me a cookie for "app1" -- i
would like it to be at "mywebServer" level - like the TestCookie.

thanks,
=maina)







[ Post a follow-up to this message ]



    RE: Cookie path correction?  
Nihit Kaul [MSFT]


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


 
08-18-04 10:52 PM

Hi Maina,

This is from the CS 2002 Docs - Is this not what you are trying to do?

Enabling Cookie Sharing across Applications

To share cookies across applications, you set the path property on the
cookie to the application path. For example, you would set the path to
/retail to share the cookie across all applications in the retail site. To
share cookies between applications that do not have the same virtual
directory name, you must set the path to the root "/" level.

To enable cookie sharing across applications in the same site:

1. Expand Commerce Server Manager, expand Commerce Sites, and then click
the site you want to administer.
2. Expand Applications, right-click the application you want to configure,
and then click Properties.
3. Uncheck the Set cookie path to application check box, and then click OK.
Note: This causes the host to set the path property to '/'.
4. Restart IIS using the net stop and net start commands. For instructions,
see Restarting IIS and Commerce Server Services.
Notes:
If you are using encryption, verify that the encryption key is the same on
both applications. It is recommended that you encrypt cookies because they
contain authentication tickets. For information about encrypting cookies,
see Summary of Cookie Features. For information about generating a new
encryption key, see Generating a New Cookie Encryption Key.
If the CookiePath_ApplicationScope property is selected, the path property
is set to the current application path.

Thanks,

Nihit Kaul[MSFT]
Commerce Server
http://blogs.msdn.com/nihitk

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
--------------------
From: "maina" <mainad(at)magenic.com>
Subject: Cookie path correction?
Date: Wed, 4 Aug 2004 15:20:53 -0700
Lines: 15
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
Message-ID: <OXaqIFneEHA.692@TK2MSFTNGP10.phx.gbl>
Newsgroups: microsoft.public.commerceserver.general
NNTP-Posting-Host: 208.242.148.4
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.commerceserver.general:14440
X-Tomcat-NG: microsoft.public.commerceserver.general

I have two applications, mywebServer/app1 and mywebServer/app2 in one
commerce site.

How can i share profile/auth cookies between them?
What excactly do the two options for Cookie Path Correction mean?
"Type 1 to enable application-based correction, or type 2 to enable
filter-based correction."

I have tried both options, but it always gives me a cookie for "app1" -- i
would like it to be at "mywebServer" level - like the TestCookie.

thanks,
=maina)








[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 11:33 AM.      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