Adding new payment gateway questions...

Posted on 2011-05-08
Last Modified: 2012-05-11
I have been asked to add a new payment gateway to a web app that I created. This new payment gateway takes my visitors to another site where they actually do the transaction. It then redirects the visitors back to my site after the payment has been finished. My concern is that upon redirect all of my session variables will be lost. This would ruin the entire session an make finalizing the data impossible.

I have a LOT of session variables, many of which are ASP.NET objects so just passing them in the URL is not an option. Am I correct in my assumption that the redirect would kill my session variables? If so, how should I handle this?

Just so you know I'm using a C# code behind.
Question by:tatton777
    LVL 19

    Accepted Solution

    Hi tatton777,
    Your assumption is not correct, Redirecting the page will not kill the session variables. Its due to time out of Session.

    A session ends if a user has not requested or refreshed a page in the application for a specified period. By default, this is 20 minutes.

    If you want to set a timeout interval that is shorter or longer than the default, use the Timeout property.


    Open in new window

    This will create a session for 60 minutes. You can increase it.
    LVL 1

    Author Comment

    Sweet!! That makes my life SOOO much better. Let me  test it...

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now