Wrox Programmer Forums
|
BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6
This is the forum to discuss the Wrox book Beginning PHP, Apache, MySQLWeb Development by Michael K. Glass, Yann Le Scouarnec, Elizabeth Naramore, Gary Mailer, Jeremy Stolz, Jason Gerner; ISBN: 9780764557446
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 21st, 2004, 09:21 AM
Authorized User
 
Join Date: Jul 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi, Richard, I've just been reading the manual (online - no, I didn't think of that before). I can't say I'm much wiser, apart from apparently cookies are implicit, so I stand corrected, and there are some other snippets of code in readers' comments. So I'll plough on ....

Edna

 
Old July 22nd, 2004, 04:25 AM
Authorized User
 
Join Date: Jul 2004
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by Airidh
 I looked in preferences in opera, and there was no cookie associated with these two scripts. By the way, preferences is now in the Tools menu in Opera; I am sure it was under File before.


This tells me that you have upgraded to Opera 7.5x. Preferences used to be on the file menu, but it has moved to the tool menu in this version. "ALT + P" still brings up the preferences menu.

Having said that it also handles cookies differently. If you have Opera set to 'accept all cookies' (get your head examined and change it after you fix this issue); you should see a cookie for 'localhost' (I believe). If you want to save time (if you are wide open then you will have lots of cookies)when you go to the cookie page, type in PHP in the search box (aka "quick search"). This will bring up anything with the string "PHP" in it. It should only be cookies. I would also suggest TOOLS>DELETE PRIVATE DATA ........ and then access your web application BEFORE GOING TO THE NET. It should be clear where you cookie is.

You may also have to check (tick)"Accept cookies with incorrect path". It is possible that Opera will see 'localhost' as an incorrect name, since it is not terminated with a TLD (.com .net .org etc...).

Preferred cookie settings:
"Treat as specified in Server Manager" - normal cookies
"Refuse all cookies" - third party cookies
I also have "Delete New Cookies When Exiting Opera" checked (ticked).

These settings will force you to manually allow cookies for each server. It is amazing what sites become less valuable when you see all the data they are collecting.

Hope that helps.

 
Old July 28th, 2004, 06:14 AM
Authorized User
 
Join Date: Jul 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

GOTTIT! It's solved!

Thanks to everybody for your help, especially Richard.

It was ZONEALARM!!! I tried all cookie combinations including "enable all" - I usually have it set to "ask" - and it made no difference. Then I remembered having had difficulty making a purchase from an online site, and they kept telling me to enable cookies, which of course I had, and as a last resort switched off ZoneAlarm and was able to order. So I did the same here (I am running Apache offline anyway) and Bingo!! Set the cookies back to "ask", and it still runs; of course it does ask. I will configure that out.

Not very satisfactory in the long run - I will have to configure ZA too; but at least it will let me get on .... to Chapter 3!

 
Old August 1st, 2004, 05:13 AM
Authorized User
 
Join Date: Jul 2004
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I did forget to mention that 'localhost' entry will be wiped out by Opera if you close the browser.



 
Old February 18th, 2005, 07:58 PM
Registered User
 
Join Date: Feb 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm having the same problem. I'm not running ZONE ALARM, and I've tried the remedies recommended in this post. When I click on the link in movie1.php, the data is not passed to moviesite.php. I've looked in the file that stores the session data. Two files are created - the first file has the username and authuser data, the second file is blank. Please help.

My web server:
Win XP Pro
Apache 2
MySQL 4.19
PHP 4.3.10

The "Session" section of my PHP.ini file (comments removed):

[Session]

session.save_handler = files
session.save_path = C:\TEMP
session.use_cookies = 1
session.use_only_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.serialize_handler = php
session.gc_probability = 1
session.gc_divisor = 1000
session.gc_maxlifetime = 1440
session.bug_compat_42 = 0
session.bug_compat_warn = 1
session.referer_check =
session.entropy_length = 0
session.entropy_file =
;session.entropy_length = 16
;session.entropy_file = /dev/urandom
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 1

Any help is appreciated. Thanks!

-- Jeff
 
Old February 22nd, 2005, 07:34 PM
Registered User
 
Join Date: Feb 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Disregard, it's working now, although I have no idea why...

-- Jeff





Similar Threads
Thread Thread Starter Forum Replies Last Post
Undefined index junemo Pro PHP 8 October 31st, 2007 05:45 PM
Hung up on Ch 2, Pg 53 - new to VB xxxiii BOOK: Expert One-on-One Access Application Development 4 July 20th, 2006 09:25 AM
Undefined Index Error rit01 Beginning PHP 0 March 1st, 2006 10:03 AM
Undefined index ashinotani Beginning PHP 2 August 17th, 2004 03:31 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.