473,513 Members | 2,409 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Sessions across servers?

CK
I'm try to implement a CATCHPA script on a server that doesn't have GD
extension. So i'm calling a PHP script on another server to return the
image. Only problem is I need to return a variable along with the
image as below

On server 1(Without GD)
<img src="http:www.server1.com/image.php?
width=100&height=40&characters=5" />

ON server 2(Image creation and security code scipt)
..........
header('Content-Type: image/jpeg');
imagejpeg($image);
imagedestroy($image);
$_SESSION['security_code'] = $code;
..........

Script works fine if all files on server with GD extension, my only
problem is getting back the "$_SESSION['security_code'] = $code;"
variable?

Thanks
Jul 15 '08 #1
2 1270
CK schreef:
I'm try to implement a CATCHPA script on a server that doesn't have GD
extension. So i'm calling a PHP script on another server to return the
image. Only problem is I need to return a variable along with the
image as below

On server 1(Without GD)
<img src="http:www.server1.com/image.php?
width=100&height=40&characters=5" />

ON server 2(Image creation and security code scipt)
.........
header('Content-Type: image/jpeg');
imagejpeg($image);
imagedestroy($image);
$_SESSION['security_code'] = $code;
.........

Script works fine if all files on server with GD extension, my only
problem is getting back the "$_SESSION['security_code'] = $code;"
variable?

Thanks
Hi,

No, you cannot easily share session between different servers.
Unless you want to get into the detail of it, my advise would be to
simply use recaptcha:
http://recaptcha.net/

Using that also:
1) Makes sure your captchas are difficult enough, but readable
2) Makes your captcha even work for visual disabled/impaired visitors
3) You help translate books!
4) Very easy to set up and use.
5) public/private key logic implemented, so hackers/spammers will have a
hard time.

Regards,
Erwin Moller
Jul 15 '08 #2
CK
Nice, that will work well for me. Thanks.
On 15 Jul, 17:38, Erwin Moller
<Since_humans_read_this_I_am_spammed_too_m...@spam yourself.comwrote:
CK schreef:


I'm try to implement a CATCHPA script on a server that doesn't have GD
extension. So i'm calling a PHP script on another server to return the
image. *Only problem is I need to return a variable along with the
image as below
On server 1(Without GD)
<img src="http:www.server1.com/image.php?
width=100&height=40&characters=5" />
ON server 2(Image creation and security code scipt)
.........
header('Content-Type: image/jpeg');
imagejpeg($image);
imagedestroy($image);
$_SESSION['security_code'] = $code;
.........
Script works fine if all files on server with GD extension, my only
problem is getting back the "$_SESSION['security_code'] = $code;"
variable?
Thanks

Hi,

No, you cannot easily share session between different servers.
Unless you want to get into the detail of it, my advise would be to
simply use recaptcha:http://recaptcha.net/

Using that also:
1) Makes sure your captchas are difficult enough, but readable
2) Makes your captcha even work for visual disabled/impaired visitors
3) You help translate books!
4) Very easy to set up and use.
5) public/private key logic implemented, so hackers/spammers will have a
hard time.

Regards,
Erwin Moller- Hide quoted text -

- Show quoted text -
Jul 16 '08 #3

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

Similar topics

1
6207
by: Meghna | last post by:
Hi, I was wondering if some one would be able to help me with this. I am trying to share a session across two servers and I seem to be experiencing some problems. I was wondering if anybody has...
6
2229
by: Rob Meade | last post by:
Hi all, At work we have 2 servers in a cluster for our web apps. One problem we have experienced (along with many others!) - is that if a user is logged into one of the applications on server...
12
5152
by: Grunff | last post by:
I'm experiencing an interesting problem with carrying a php session over from http to https. Much googling later, I'm still stuck. The application is an online shop, where some user data is...
8
2284
by: Balazs Wellisch | last post by:
Has anyone here implemented sessions in a load balanced environment using database storage as a custom session handler? I'd be interested to hear about your experiences. Upsides, downsides, bugs,...
3
5753
by: Dave Smithz | last post by:
Hi there, I have a website where users can log into. This users sessions as I believe most people use when implementing a login section of a website (each php page first checks a valid parameter...
6
2020
by: Mad Scientist Jr | last post by:
My asp.net pages sessions are timing out after 20 minutes, and when I asked my Web host about it they said due to the nature of a shared hosting environment they cannot allow for sessions to keep...
1
1961
by: Evan Nelson | last post by:
We are running our website on 3 W2K servers using classic ASP and IIS 5.0. Because the servers are load balanced we don't use the ASP Session object instead we store session type information to the...
3
3975
by: Ben Holness | last post by:
Hi all, I have a php/mysql website where people can upload their own graphics for the buttons and background of pages on the website. This used to run on one server, but I have now been asked...
26
7890
by: Bookham Measures | last post by:
Hello We are planning to set-up a load balanced web environment. Accordingly, we are going to change the session management on our website from the classic ASP Session State and session...
9
7363
by: Gilles Ganault | last post by:
Hello Some data are common to all user sessions, and to improve performance/save resources, I'd like to share those data between all sessions, so that each user doesn't have to hit MySQL for the...
0
7267
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7175
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7120
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7542
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5697
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4754
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3247
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3235
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
809
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.