Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic redirecting Perl to PHP and back to Perl (Read 1570 times)
Martin_W
Senior Member
****
Offline


I love YaBB 1G - SP1.2!

Posts: 463
Location: Devon
Joined: Jun 22nd, 2005
Gender: Male
redirecting Perl to PHP and back to Perl
Mar 29th, 2009 at 10:38am
Print Post  
I am developing a gallery script for my YaBB 2.3 forum.

I have a form in the forum which is directed to a PHP script which does some image manipulation, and the PHP script then uses CURL to redirect to the Perl script with the variables through POST.

The script call to the Perl script works, but the forum throws up the form spoofing error.  The form is sending the formsession data, but the redirect from PHP to the forum shows the forum as logged out (so the formsession data wont match as it is based on $mbname and $username).

Why would the board be logged out when using the PHP redirect?  If I open another web page I am logged in already, or if I hit the backbutton to go back to the form I filled in I am still logged in there.

I am not to up to speed with cookies, but would I need to send a cookie with the PHP redirect?

umm....maybe should post this in a PHP forum!
  
Back to top
WWW  
IP Logged
 
deti
Full Member
***
Offline


YaBB is the best!!!

Posts: 101
Location: Prien am Chiemsee
Joined: Mar 13th, 2008
Re: redirecting Perl to PHP and back to Perl
Reply #1 - Mar 29th, 2009 at 12:27pm
Print Post  
Can't you redirect with GET instead of POST? GET doesn't use the formsession.
  

Was immer Du tun kannst
oder erträumst tun zu können,
beginne es.
Kühnheit besitzt Genie,
Macht und magische Kraft.
Beginne es jetzt.
Whatever you can do
or dream you can,
begin it.
Boldness has genius,
power and magic in it.
Begin it now.
Johann Wolfgang Goethe
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint