On 11 December 2003 18:01, Peter Walter wrote: > Mike, > > Thanks for the additional explanation, and I understand the > sequence of events as you described. However, please bear > with me a bit - the results I am getting do not quite match > your explanation. Let me clarify what I am doing: > > I have a page (index.php) which starts out by calling > start_session(),
I hope you mean session_start(). > then emits some html code containing some > form variables for search criteria. After the form variables, > I have a "submit" button that refers to index.php. Following > that, I have php logic that extracts the search criteria (if > set) from $HTTP_POST_VARS, performs a MySQL query, then > creates a table of results (if any); one of the table entries > contains a <a href= link to determine which row the user selected. > > The first time I load the page, I assume the session is > created by start_session(), and the cookie is sent to the > browser. When I click on the "submit" button, the page is > reloaded - I assume with the session active - as per your > explanation. According tho the documentation I have read, the > second time the page is loaded, start_session() will simply > reuse the existing session parameters. At this point, the > browser should already have the cookie - if it did not, I > would not be able to retrieve the session variables Well, you would, because PHP would use the value from the PHPSESSID= URL parameter. > - but the > url links in the table are still rewritten. I do not understand why. My immediate reaction to this is that session.use_cookies must be set to 0 (or Off) in your php.ini (or equivalent). Have you checked this? If it looks correct, what does a phpinfo() page show? Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php