Friends,

I may have to include more code, but maybe this will be enough for you 
experts to say, "Oh, yeah, there's your problem!"

When a player goes to my website, biblescramble.com, and attempts to play 
the first level of my game, the output is "Location: 
http://biblescramble.com/biblescramble7.html"; on the first attempt. At that 
point the lines

print <<EOD;
Set-Cookie: guest=$lastCookie; expires=Wed, 29-Dec-2022 00:00:00 GMT;


EOD

set a cookie. Then if the player goes back and tries again, or hits the 
refresh button, the game works. This is not optimal.

How can I get it to skip that "Location: 
http://biblescramble.com/biblescramble7.html"; step???

If you need more details, let me know. If you go to biblescramble.com an 
play the first game you'll see what I mean. Try twice and the game will 
work. Delete my cookie from your machine and it will goof up again.

Thanks!

Jerry Kassebaum

P.S.

The last few lines of the cgi program follow:


print "Location: http://biblescramble.com/biblescramble7.html\n\n";;

# BOTH returns on the end are vital! One won't do ya!



exit 0;

Why would the process of setting a cookie cause that line to literally print 
to the screen, when not setting a cookie lets it do what it says???

_________________________________________________________________
Mortgage rates as low as 4.625% - Refinance $150,000 loan for $579 a month. 
Intro*Terms  http://www.NexTag.com

_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to