Session expires after returning from pay pal to My site after payment.

Posted on 2008-11-13
Last Modified: 2012-05-05
Hi all,
I am Integrating pay pal to my site and using Pay pal PDT.
i AM USING HTML BUTTON OF PAY PAL AND i AM SETTING SEESION[uSERNAME"] IN my pay pal button page. from there it goes to pay pal and returns back  to my thank you page.
On my thank you page I am reading this session.
Sometimes its there and sometimes it null.
Some times Session expires after returning from pay pal to My site after payment.
P-lease let me know the reason if you can guess
Question by:dhiraj79
    LVL 1

    Expert Comment

    You need to add optional parameter(username in your case) to PayPal request and PayPal returns it in response ...
    About session : You can change session time (20 min by default) in web.config

    Author Comment

    Thanks for the reply ....
    How can I send value of user name from my session variable to the html button code optional parameter.
    Can you please give that code.
    LVL 19

    Accepted Solution

    In your form you probably have a return URL like this:
    <INPUT TYPE="hidden" NAME="return" value="">

    Add the parameter to that:
    <INPUT TYPE="hidden" NAME="return" value="<%=SESSION["uSERNAME"]%>>


    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Suggested Solutions

    Are you using email marketing software? If not, you're missing out on effortless marketing and the reaching of desired conversion rates through email marketing software.
    Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
    Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    732 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

    24 Experts available now in Live!

    Get 1:1 Help Now