Raheel,

Have you done a session_start() on each page that requires session
variables? Or set the php.ini Session Auto Start to 1 (true, if I recall
correctly) if you want sessions enabled on all your page calls, then
restart your http server.

-Dash

Heaven, n.:
        A place where the wicked cease from troubling you with talk of
their personal affairs, and the good listen with attention while you
expound your own.
                -- Ambrose Bierce, "The Devil's Dictionary"

On Thu, 31 Oct 2002, Raheel Hussain wrote:

>
> function SetDomain(d) { document.domain = d; }Hi,
> I m a new bie programmer in PHP , but have strong background in ASP
>
> here i m having a problem with session persistance
>
> at one page i m starting the session, with
> session_start();
> $_SESSION['count']="1";
> print($_SESSION['count']); // this works all fine
>
>
> but when i navigate to second pages, and write the following code, then creates 
>problem,
>
> print($_SESSION['count']); // this doesnt work fine,
>
> it gives "undefined variables _SESSION prblem,
>
> may b i m making some mistake in the session configuration of php.ini file,
> so plz guide me to default configuration , so that i can be able to continue with my 
>work.
>
>
> regards
> raheel
>
>
>
>
> ---------------------------------
> Do you Yahoo!?
> HotJobs - Search new jobs daily now


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

Reply via email to