locked
how to keep current user session when redirected to sub-domain from main-domain? RRS feed

  • Question

  • User1361142914 posted

    I have also installed SSL on a subdomain. I have put payment page under this sub domain.
    When payment is required or requested, user is redirected to payment page (SSL-subdomain) from the main domain. In this case, sub-domain is percieved as another web application and it requires re-login. All information of authenticated user is lost. I am using membership provider. What should I do to keep current user session?

    Thursday, February 17, 2011 3:01 PM

Answers

All replies

  • User533502567 posted

    All information of authenticated user is lost. I am using membership provider. What should I do to keep current user session?

    Try by setting cookie domain with main domain. Something like this in webconfig..

    <httpCookies domain=".YourMainDomain.com"/> 
    Thursday, February 17, 2011 3:31 PM
  • User1361142914 posted

    it did not work :( Am I missing something else? I included the line "<httpcookies...." and I put the same webconfig file in tue subdomain folder. Should I configure anything else of membership provider?

    Thursday, February 17, 2011 4:23 PM
  • User533502567 posted

    It seems session will get lost if you transfer pages from un secured to secured (SSL). Check this..

    http://www.west-wind.com/Weblog/posts/4057.aspx

    Thursday, February 17, 2011 4:33 PM
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, February 21, 2011 12:02 PM