This sounds weired but try to have a look at your IE settings. If cookies
don't work on your IE (on the client machine, not the server of course),
your sessions won't either (unless you use session.use_trans_sid) :

sessions use cookies to keep their Id, if PHP doesn't find an ID (a cookie),
he will create a new session. That's why each time you load your page a new
session file is created.

Try to use session.use_trans_sid and i'm sure it will work (!!! : using
trans_sid lowers your security level, if someone does a ctrlC ctrlV on the
url and sends it to a friend, the friend will receive the URL with the
session ID in it. This means that those two persons will share the same
session).


Hope this will help ;-)
Romain



"Kapten Nemo" <[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
> I've set variables for session.save_path = c:/php4/tmp in the php.ini,
> when starting request from the browser to the server (Win+Apache+PHP)
> for example http://localhost/test/test_session.php
> the temporary sessions files are created, and stored session information.
> When second request arrived to the server
> its start creating another session instead of getting the first request of
> session information.
>
> This problem are the same for cookies as well.
>
> Without changing any php code and php.ini files, the session and cookie
> running well.
>
> Regards
>
> At 08:10 PM 5/4/2004, you wrote:
> >In my (limited)experience, session variables won't work with Apache on
> >windows until you set the session.save_path variable in the php.ini
> >file to a directory for the temporary session files to go in. Why it
> >works in IIS I'm not sure - I have never used it.
> >Regards,
> >Jonathan Pilborough
> >
> >
> >=====
> >
> >--
> >Please fill in my Business Questionnaire at http://www.businessq.tk
> >
> >--
> >Pupil at Haybridge High School http://www.haybridge.worcs.sch.uk

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to