Re: PHP5 AND SESSION
| From: | Chris Hewitt | Date: | Thu, 20 Jan 2005 19:41:09 +0000 |
| Subject: | Re: PHP5 AND SESSION | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-15138@lists.php.net to get a copy of this message | ||
On Thu, 2005-01-20 at 11:38, Angelita Soares de Camargos wrote:
> Hello everybody,
>
> i'm new at the list and my english is so so, them excuse-me if I make
> some mistakes.
Do not worry, we all make mistakes. Your English is fine.
>
> i just install php5 at my windows 2000.
> i have too apache 2.0 and oracle 8i.
>
> my access to the oracle is ok.
>
> but I'm having problems whith sessions.
>
> when i do a session_start(), a file is created at my c:\web\session
> then i set some variables using $_SESSION['x'] = "blablabla".
>
> then, when i go to the next page and do a session_start(), a new
> session is created, I can't to access the old session, then i lost my
> data.
Do you get a cookie stored in your browser? If not then I suspect your
session.cookie_path and session.cookie_domain settings. Try using the
php.ini defaults and see if that works. If so you can then modify the
settings to be what you need.
I tend to leave these settings at their default values (but as you are
on MS Windows you will need to make some changes).
Hope this helps.
Chris