Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP 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 25th, 2004, 04:23 PM
Registered User
 
Join Date: Jul 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default sessions problems: change on refresh !

hi,

i've a very big session handling problem:
try this:

http://ad.tsenagasy.com/sessions.php

try to refresh the page: the session_id (just an 'echo session_id()) changes on each page reload so i can't retrieve my session variables !!!

what's the matter ?!

http://www.tsenagasy.com - malagasy events
 
Old July 25th, 2004, 09:30 PM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

It works for me. Check your browser's cookie settings.

Regards,
Rich

::::::::::::::::::::::::::::::::::::::::::
The Spicy Peanut Project
http://www.spicypeanut.net
::::::::::::::::::::::::::::::::::::::::::
 
Old July 26th, 2004, 01:44 AM
Registered User
 
Join Date: Jul 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

it seems to be a IE6/linux server bug !
see : http://fr.php.net/manual/fr/function.session-start.php on the 2nd comment.

there is a workarround but it don't work for me: i have a multi-session script !


http://www.tsenagasy.com - malagasy events
 
Old July 26th, 2004, 05:14 AM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

Like I said, it works for me. There isn't a new session id every time. Can you verify that the cookie containing the session id is being created on the client-side? In Internet Explorer do this from Tools -> Internet Options -> Settings (Under Temporary Internet Files) -> View Files. Find your domain in the list.

If you cannot find the file then you need to change your settings to accept first party cookies.

Again from the Internet Options menu select the Privacy tab, then Advanced, then enable first party cookies.

HTH!

Regards,
Rich

::::::::::::::::::::::::::::::::::::::::::
The Spicy Peanut Project
http://www.spicypeanut.net
::::::::::::::::::::::::::::::::::::::::::
 
Old July 28th, 2004, 11:08 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 256
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Was is actually an IE "patch" problem?

http://support.microsoft.com/default...b;en-us;316112

(FWIW, unless I am mistaken, you seem to have fixed this, now, but I observe that you are also sending numeric-only session IDs, as well)
Dan





Similar Threads
Thread Thread Starter Forum Replies Last Post
redirect with SSL/cookieless sessions problems jtyson ASP.NET 1.0 and 1.1 Basics 2 May 29th, 2013 07:32 PM
chapter 16 - Problems with sessions. kb90 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 3 April 11th, 2008 09:07 AM
Problems with sessions in php 4.3.11 ocabrera70 Beginning PHP 1 January 31st, 2008 04:28 AM
Problems with Sessions HelpWanted ASP.NET 1.0 and 1.1 Basics 2 December 7th, 2006 04:56 PM
Sessions - one user has problems kc5f Beginning PHP 7 June 8th, 2004 07:43 PM





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