You are here: Secpay and Sessions « All PHP « IT news, forums, messages
Secpay and Sessions

Posted by Captain Nemo on 09/27/07 20:45

Hi

I'm working on a shopping cart application and for the first time I'm
planning on using Sessions rather than a temporary table to store the
items. My problem is connected with the fact that the callback page
apparently runs on the Secpay server rather than my website. (Frankly
I don't really understand how this works, because I'm still able to
perform database operations and include() files with relative paths).

However, any attempt to access cookies or session data fails
completely. It's not that I need to access the data (I'll already
have it stored in the DB) as much as I'd really like to delete the
Session Cookie and the destroy the session file, to avoid problems
with users clicking 'refresh', or the 'back' button, etc. Now, I've
figured out I could get straight back to my own server by writing the
callback page like this:

<form name=form1 method=post action="<? echo $location ?>">
<?
foreach ($_POST as $key=>$value)
{
?>
<input type=hidden name="<? echo $key ?>" value="<? echo $value ?>">
<?
}
?>
</form>
<script language=javascript>document.form1.submit()</script>

But I have a nasty feeling that there is some very good reason for
Secpay running the callback script in their own environment, and that
this would be undermining the security of the operation in some way
that I don't understand.

Can anyone advise me on this?

Thanks.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация