473,322 Members | 1,307 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

PayPal and Session Variables

I have written some code to use paypal for users to make purchases from my
site. I am using the paypal instant payment notification.

When i get the notification from paypal I send the user an email with
registration key. I can pass data to that page with the custom field with no
problem.

The problem is after I redirect from my page to paypal. When I click the
return button on paypal at the end of the purchase process all of my session
variables are gone. They were there before I redirected to paypal but gone
when paypal sends back to my page.

Any ideas what is going on here and how I can prevent this from happening?

Right now the user has to log back in after making a purchase which is a
real hassle.

Thanks.
Nov 19 '05 #1
2 4154
I suspect this is happening because when the user is redirected to paypal,
the session ends. Probably the easiest way to handle this is to make sure
that when they are redirected to paypal, there is still a page of your site
open, so the session won't end. Otherwise, you'd have to pass some data to
paypal and back, so the user could be re-authenticated without retyping
their login. It would be easier to just keep your session going.

:-) dio
"Tommy" <to***@dontspamme.com> wrote in message
news:uQ**************@TK2MSFTNGP14.phx.gbl...
I have written some code to use paypal for users to make purchases from my
site. I am using the paypal instant payment notification.

When i get the notification from paypal I send the user an email with
registration key. I can pass data to that page with the custom field with no problem.

The problem is after I redirect from my page to paypal. When I click the
return button on paypal at the end of the purchase process all of my session variables are gone. They were there before I redirected to paypal but gone
when paypal sends back to my page.

Any ideas what is going on here and how I can prevent this from happening?

Right now the user has to log back in after making a purchase which is a
real hassle.

Thanks.

Nov 19 '05 #2
There should be no reason for this to happen unless the customer is on
paypals site for over 20 minutes (or you have session timeout set lower).

I think with paypal, you can also pass your own variables, so you could save
a login key into a database, pass that through paypal, and when the customer
returns from paypal, check your login key and re-open/re-create their
session. (For login key, I would probably pass two items, a record
identifier and a generated key, or you could use a guid).
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available
"diogenes" <di******@lorigudenkauf.com> wrote in message
news:ec**************@TK2MSFTNGP14.phx.gbl...
I suspect this is happening because when the user is redirected to paypal,
the session ends. Probably the easiest way to handle this is to make sure
that when they are redirected to paypal, there is still a page of your
site
open, so the session won't end. Otherwise, you'd have to pass some data to
paypal and back, so the user could be re-authenticated without retyping
their login. It would be easier to just keep your session going.

:-) dio
"Tommy" <to***@dontspamme.com> wrote in message
news:uQ**************@TK2MSFTNGP14.phx.gbl...
I have written some code to use paypal for users to make purchases from
my
site. I am using the paypal instant payment notification.

When i get the notification from paypal I send the user an email with
registration key. I can pass data to that page with the custom field with

no
problem.

The problem is after I redirect from my page to paypal. When I click the
return button on paypal at the end of the purchase process all of my

session
variables are gone. They were there before I redirected to paypal but
gone
when paypal sends back to my page.

Any ideas what is going on here and how I can prevent this from
happening?

Right now the user has to log back in after making a purchase which is a
real hassle.

Thanks.


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: rgparkins | last post by:
HI I have 2 problems, 1 of which is tied to PHP and 1 loosely tied, so I'll put this out there. Got a problem that I have been working on for a while now which involves implementing the...
1
by: Mike Kingscott | last post by:
Hi all, I have an app that allows users to upload files to my site, and then download them at a later date. Once the files have been safely uploaded, I wish to give them a download code to...
5
by: Jason James | last post by:
Guys, it seems that several people have enquired about how to communicate with Paypal as securely as possible. It is obvious that placing the shopping cart details in the URL is about as...
3
by: Yourself | last post by:
Hi, I'm trying to post data to PayPal for a shopping cart, basically I want to replicate a form like the following, but create the variables dynamically from code behind: <form...
0
by: PayPal Security Measures! | last post by:
<P><A href="http://www.paypal.com/cgi-bin/webscr?cmd=_home" target=_blank><IMG src="https://www.paypal.com/en_US/i/logo/paypal_logo.gif" border=0></A</P> <TABLE cellSpacing=0 cellPadding=0...
2
by: t0m66 | last post by:
I've got a setup for my online game for upgraded accounts. However, I'm unable to communicate with Paypal's IPN sandbox server. Does anyone have any experience with Paypal's IPN and, if so, can...
0
by: Nicodemus | last post by:
Do You Belive? \ cheapbbc@sina.com wrote in news:aecf26b6-4c75-4d87-b09c-a7380875e0f3 @w34g2000prm.googlegroups.com:
1
by: karleyb | last post by:
Could someone please tell my why this won't work. THe value purchase.value seems to be blank. Is there any way to get the value of a radio box? <table width="57%" border="0" align="center"...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.