[Zope] Request-variable containing some user information

Dieter Maurer dieter@handshake.de
Sat, 22 Sep 2001 00:36:57 +0200 (CEST)


Gitte Wange writes:
 > I am trying to create a shop product to use with our payment gateway.
 > ...
 > I have some problems with the things that should happen after a users credit 
 > card has been accepted by the gateway.
 > 
 > You set an ok and a failure url in the gateway setup.
 > If the card is accepted, the gateway returns the page on the ok url. But it 
 > is the gateway that returns the url and therefor Zope think it's an anonymous 
 > user that is logged in.
 > 
 > Now is there some variable from the REQUEST object I can pass to the gateway 
 > in order to make Zope know that there is a user logged in ?
 > I have tried with HTTP_COOKIE but it didn't seem to work.
Do not know. Ask you gateway documentation....

But you can make the success URL accessible by Anonymous.
Of course, you need to implement your own checks
to prevent faked accesses to this page.

 > One other thing is that the form tag can only look like this:
 > <INPUT TYPE="hidden" NAME="sessionid" VALUE="<dtml-var 
 > "REQUEST['HTTP_COOKIE']">">
That may be sufficient.
"sessionid" may be the id into the Session Manager.
It can maintail all info about the current session (and its user).



Dieter