View Cart|Wish List|Login|Register | Thursday, February 09, 2012
 
 Search   ..:: Support &
    Service
  Forum
::..
 
    Minimize
www.catalooksupport.com ::: another place for CATALooK.netStore support

    Minimize
SearchForum Home
     
  DotNetNuke  CATALooK.netStore  Will got logged...
 Will got logged out after Response.Redirect
 
 12/22/2006 12:14:42 PM
twkliu
37 posts


Will got logged out after Response.Redirect
I am creating an IPN page to process the payment data posted back from the company who will accept the credit card for my web site.

After all the works are done in IPN page, the user will get redirected back to either their "My Account" page or "Shopping Cart" page.

In my IPN page, I am using code like this to redirect users:

Response.Redirect(_StoreAdminInfo.GetModuleURL(PortalID, "CAT_Cart", _StoreAdminInfo.PayPalReturnTabID))

But the page will get redirected to "http://myserver.com/default.aspx?tabid=-1" at the first time, if I try it again, the page will then be redirected to the correct page, but not logged in anymore.

I tried to hardcode the URL to something like:

Response.Redirect("http://myserver.com/default.aspx?tabid=123")

But when I arrived that page, I am still not logged in anymore. Somehow in the process of Redirect, the user will get logged out automatically.

Anyone has any idea on this issue?

Thanks!
 12/23/2006 9:45:13 AM
host
1831 posts
1st


Re: Will got logged out after Response.Redirect
Please check if the following code is included:

Dim _StoreAdminInfo = New StoreAdminInfo(PortalID)

This is a sample for redirection. Don't forget the ',True)' at the end of the redirect command:

If orderId > 0 Then
objCreditCardcontroller.CAT_SaveCCData(strTransactionID, "", "", "(paymate)", Convert.ToString(orderId), "", ConvLocalizedNumber(strAmount), 0, 0, _StoreAdminInfo.paypalcartName, "", "", paymentstatus)
Response.Redirect(AddHTTP(GetDomainName(Request) & "/" & glbDefaultPage & "?tabid=" & _StoreAdminInfo.PaypalReturnTabID & "&OrderID=" & orderId.ToString & "&CustomerID=" & UserID.ToString), True)
Else
Response.Redirect(_StoreAdminInfo.GetModuleURL(PortalID, "CAT_Cart", _StoreAdminInfo.PayPalReturnTabID) & "&cattranssucc=false", True)
End If
 12/23/2006 10:12:47 PM
twkliu
37 posts


Re: Will got logged out after Response.Redirect
Yes, I have

Dim _StoreAdminInfo = New StoreAdminInfo(PortalID)

And I have

If blnValid Then
'Redirect to "My Account" page
strRedirectURL = AddHTTP(GetDomainName(Request) & "/" & glbDefaultPage & "?tabid=" & strReturnTabID & "&OrderID=" & orderId.ToString & "&CustomerID=" & UserID.ToString)
Response.Redirect(strRedirectURL, True)
Else
'Redirect to Shopping Cart page
strRedirectURL = _StoreAdminInfo.GetModuleURL(PortalID, "CAT_Cart", _StoreAdminInfo.PayPalReturnTabID)
Response.Redirect(strRedirectURL, True)
End If

I still got logged out when redirected back to either one of the page....
 12/24/2006 12:49:50 AM
twkliu
37 posts


Re: Will got logged out after Response.Redirect
After some more testing, I found out that only host account won't get logged out automatically after Response.Redirect().

Beside host account, any other logged in account will get logged out when use redirect, even with admin account.

Any idea on this?

Thanks!
 12/25/2006 1:16:30 PM
host
1831 posts
1st


Re: Will got logged out after Response.Redirect
Probably your gateway provider destroys the http context and session. Please ask the gateway support for help.
 1/3/2007 7:29:00 AM
twkliu
37 posts


Re: Will got logged out after Response.Redirect
Just for the update:

The return URL I sent to my gateway provider needs to have either portalID or tabid value included, otherwise when the page got redirect back from the provider to my server, the server will delete cookies, and that will cause the user to get logout.
  DotNetNuke  CATALooK.netStore  Will got logged...

    Minimize
www.excommerce.com ::: eXcommerce are a dedicated reseller of Catalook. If you want the features of catalook without the hassle of setup and maintenance and want some extra support options please check our services.
      

References / Live Stores | Forum | Trial Downloads | Resource Directory | Release History | Support Requests | Referral Program | Contact
CATALooK |  Terms Of Use |  Privacy Statement
Copyright 2002-2010 CATALooK